新增查询简历模板组别接口 、获取模板组别明细

master
xiaochanghai 8 months ago
parent 921750db12
commit 49b678d30a
  1. 662
      Model/Tiobon.Web.pdm
  2. 14
      Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeInfoGroupController.cs
  3. 13
      Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeTemplateController.cs
  4. 275
      Tiobon.Core.Api/Tiobon.Core.Model.xml
  5. 14
      Tiobon.Core.Api/Tiobon.Core.xml
  6. 12
      Tiobon.Core.IServices/Ghrh/IGhrh_ResumeInfoGroupServices.cs
  7. 5
      Tiobon.Core.IServices/Ghrh/IGhrh_ResumeTemplateServices.cs
  8. 167
      Tiobon.Core.Model/Base/Ghrh/Ghrh_ResumeInfoGroup.Dto.Base.cs
  9. 27
      Tiobon.Core.Model/Edit/Ghrh/Ghrh_ResumeInfoGroup.Dto.EditInput.cs
  10. 27
      Tiobon.Core.Model/Insert/Ghrh/Ghrh_ResumeInfoGroup.Dto.InsertInput.cs
  11. 169
      Tiobon.Core.Model/Models/Ghrh/Ghrh_ResumeInfoGroup.cs
  12. 44
      Tiobon.Core.Model/View/Ghrh/Ghrh_ResumeInfoGroup.Dto.View.cs
  13. 23
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeInfoGroupServices.cs
  14. 180
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeTemplateServices.cs

File diff suppressed because it is too large Load Diff

@ -0,0 +1,14 @@
namespace Tiobon.Core.Api.Controllers;
/// <summary>
/// 简历组别(Controller)
/// </summary>
[Route("api/[controller]")]
[ApiController, GlobalActionFilter]
[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghrh)]
public class Ghrh_ResumeInfoGroupController : BaseController<IGhrh_ResumeInfoGroupServices, Ghrh_ResumeInfoGroup, Ghrh_ResumeInfoGroupDto, InsertGhrh_ResumeInfoGroupInput, EditGhrh_ResumeInfoGroupInput>
{
public Ghrh_ResumeInfoGroupController(IGhrh_ResumeInfoGroupServices service) : base(service)
{
}
}

@ -20,6 +20,17 @@ public class Ghrh_ResumeTemplateController : BaseController<IGhrh_ResumeTemplate
/// <param name="isPublish"></param>
/// <returns></returns>
[HttpPost("SwitchPublish/{id}/{isPublish}")]
public async Task<ServiceResult> RecordDuration(long id, int? isPublish) => await _service.SwitchPublish(id, isPublish);
public async Task<ServiceResult> SwitchPublish(long id, int? isPublish) => await _service.SwitchPublish(id, isPublish);
#endregion
#region 获取分组数据
/// <summary>
/// 获取分组数据
/// </summary>
/// <param name="filter"></param>
/// <returns></returns>
[HttpPost("QueryGroup")]
public async Task<ServiceResult<List<Ghrh_ResumeInfoGroupDto>>> QueryGroup([FromBody] QueryForm filter) => await _service.QueryGroup(filter);
#endregion
}

@ -5960,6 +5960,131 @@
预留字段12
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase">
<summary>
简历组别 (Dto.Base)
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.GroupNo">
<summary>
组别编号
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.GroupName">
<summary>
组别名
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.MKey">
<summary>
多语Key
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.GroupType">
<summary>
组别类型
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.TableName">
<summary>
表名
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.TablePKIDName">
<summary>
主键名
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.TableNames">
<summary>
多表名
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.SortNo">
<summary>
排序号
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.CanModifyBySelf">
<summary>
员工可修改
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.CanEssDisplay">
<summary>
ESS 显示
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.RemarkSz">
<summary>
备注
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.IsDefault">
<summary>
默认标志
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.Reverse1">
<summary>
预留字段1
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.Reverse2">
<summary>
预留字段2
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.Reverse3">
<summary>
预留字段3
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.Reverse4">
<summary>
预留字段4
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.Reverse5">
<summary>
预留字段5
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.Reverse6">
<summary>
预留字段6
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.Reverse7">
<summary>
预留字段7
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.Reverse8">
<summary>
预留字段8
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.Reverse9">
<summary>
预留字段9
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.Reverse10">
<summary>
预留字段10
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.ReverseI1">
<summary>
预留字段11
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupBase.ReverseI2">
<summary>
预留字段12
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeTemplateBase">
<summary>
简历模板 (Dto.Base)
@ -7362,6 +7487,11 @@
培训讲师异动附件 (Dto.EditInput)
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.EditGhrh_ResumeInfoGroupInput">
<summary>
简历组别 (Dto.EditInput)
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.EditGhrh_ResumeTemplateInput">
<summary>
简历模板 (Dto.EditInput)
@ -7627,6 +7757,11 @@
培训讲师异动附件 (Dto.InsertInput)
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.InsertGhrh_ResumeInfoGroupInput">
<summary>
简历组别 (Dto.InsertInput)
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.InsertGhrh_ResumeTemplateInput">
<summary>
简历模板 (Dto.InsertInput)
@ -13936,6 +14071,131 @@
任务内存中的状态
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup">
<summary>
简历组别 (Model)
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.GroupNo">
<summary>
组别编号
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.GroupName">
<summary>
组别名
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.MKey">
<summary>
多语Key
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.GroupType">
<summary>
组别类型
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.TableName">
<summary>
表名
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.TablePKIDName">
<summary>
主键名
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.TableNames">
<summary>
多表名
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.SortNo">
<summary>
排序号
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.CanModifyBySelf">
<summary>
员工可修改
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.CanEssDisplay">
<summary>
ESS 显示
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.RemarkSz">
<summary>
备注
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.IsDefault">
<summary>
默认标志
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.Reverse1">
<summary>
预留字段1
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.Reverse2">
<summary>
预留字段2
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.Reverse3">
<summary>
预留字段3
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.Reverse4">
<summary>
预留字段4
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.Reverse5">
<summary>
预留字段5
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.Reverse6">
<summary>
预留字段6
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.Reverse7">
<summary>
预留字段7
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.Reverse8">
<summary>
预留字段8
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.Reverse9">
<summary>
预留字段9
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.Reverse10">
<summary>
预留字段10
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.ReverseI1">
<summary>
预留字段11
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroup.ReverseI2">
<summary>
预留字段12
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeTemplate">
<summary>
简历模板 (Model)
@ -16662,6 +16922,21 @@
修改信息
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupDto">
<summary>
简历组别(Dto.View1)
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupDto.CreateDataInfo">
<summary>
创建信息
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeInfoGroupDto.UpdateDataInfo">
<summary>
修改信息
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeTemplateDto">
<summary>
简历模板(Dto.View)

@ -1136,12 +1136,17 @@
<param name="status">status</param>
<returns></returns>
</member>
<member name="T:Tiobon.Core.Api.Controllers.Ghrh_ResumeInfoGroupController">
<summary>
简历组别(Controller)
</summary>
</member>
<member name="T:Tiobon.Core.Api.Controllers.Ghrh_ResumeTemplateController">
<summary>
简历模板(Controller)
</summary>
</member>
<member name="M:Tiobon.Core.Api.Controllers.Ghrh_ResumeTemplateController.RecordDuration(System.Int64,System.Nullable{System.Int32})">
<member name="M:Tiobon.Core.Api.Controllers.Ghrh_ResumeTemplateController.SwitchPublish(System.Int64,System.Nullable{System.Int32})">
<summary>
是否开启
</summary>
@ -1149,6 +1154,13 @@
<param name="isPublish"></param>
<returns></returns>
</member>
<member name="M:Tiobon.Core.Api.Controllers.Ghrh_ResumeTemplateController.QueryGroup(Tiobon.Core.Common.QueryForm)">
<summary>
获取分组数据
</summary>
<param name="filter"></param>
<returns></returns>
</member>
<member name="T:Tiobon.Core.Api.Controllers.Ghro_DeptController">
<summary>
Ghro_Dept(Controller)

@ -0,0 +1,12 @@
using Tiobon.Core.IServices.BASE;
using Tiobon.Core.Model.Models;
namespace Tiobon.Core.IServices
{
/// <summary>
/// 简历组别(自定义服务接口)
/// </summary>
public interface IGhrh_ResumeInfoGroupServices :IBaseServices<Ghrh_ResumeInfoGroup, Ghrh_ResumeInfoGroupDto, InsertGhrh_ResumeInfoGroupInput, EditGhrh_ResumeInfoGroupInput>
{
}
}

@ -1,4 +1,5 @@
using Tiobon.Core.IServices.BASE;
using Tiobon.Core.Common;
using Tiobon.Core.IServices.BASE;
using Tiobon.Core.Model;
using Tiobon.Core.Model.Models;
@ -10,5 +11,7 @@ namespace Tiobon.Core.IServices
public interface IGhrh_ResumeTemplateServices :IBaseServices<Ghrh_ResumeTemplate, Ghrh_ResumeTemplateDto, InsertGhrh_ResumeTemplateInput, EditGhrh_ResumeTemplateInput>
{
Task<ServiceResult> SwitchPublish(long id, int? isPublish);
Task<ServiceResult<List<Ghrh_ResumeInfoGroupDto>>> QueryGroup(QueryForm filter);
}
}

@ -0,0 +1,167 @@
/* ,
* Ghrh_ResumeInfoGroup.cs
*
* N / A
* Ghrh_ResumeInfoGroup
*
* Ver
*
*V0.01 2024/10/11 15:09:37 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Tiobon.Core.Model.Models
{
/// <summary>
/// 简历组别 (Dto.Base)
/// </summary>
public class Ghrh_ResumeInfoGroupBase
{
/// <summary>
/// 组别编号
/// </summary>
[Display(Name = "GroupNo"), Description("组别编号"), MaxLength(100, ErrorMessage = "组别编号 不能超过 100 个字符")]
public string GroupNo { get; set; }
/// <summary>
/// 组别名
/// </summary>
[Display(Name = "GroupName"), Description("组别名"), MaxLength(100, ErrorMessage = "组别名 不能超过 100 个字符")]
public string GroupName { get; set; }
/// <summary>
/// 多语Key
/// </summary>
[Display(Name = "MKey"), Description("多语Key"), MaxLength(100, ErrorMessage = "多语Key 不能超过 100 个字符")]
public string MKey { get; set; }
/// <summary>
/// 组别类型
/// </summary>
[Display(Name = "GroupType"), Description("组别类型"), MaxLength(100, ErrorMessage = "组别类型 不能超过 100 个字符")]
public string GroupType { get; set; }
/// <summary>
/// 表名
/// </summary>
[Display(Name = "TableName"), Description("表名"), MaxLength(100, ErrorMessage = "表名 不能超过 100 个字符")]
public string TableName { get; set; }
/// <summary>
/// 主键名
/// </summary>
[Display(Name = "TablePKIDName"), Description("主键名"), MaxLength(100, ErrorMessage = "主键名 不能超过 100 个字符")]
public string TablePKIDName { get; set; }
/// <summary>
/// 多表名
/// </summary>
[Display(Name = "TableNames"), Description("多表名"), MaxLength(1000, ErrorMessage = "多表名 不能超过 1000 个字符")]
public string TableNames { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int? SortNo { get; set; }
/// <summary>
/// 员工可修改
/// </summary>
public int? CanModifyBySelf { get; set; }
/// <summary>
/// ESS 显示
/// </summary>
public int? CanEssDisplay { get; set; }
/// <summary>
/// 备注
/// </summary>
[Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")]
public string RemarkSz { get; set; }
/// <summary>
/// 默认标志
/// </summary>
public int? IsDefault { get; set; }
/// <summary>
/// 预留字段1
/// </summary>
[Display(Name = "Reverse1"), Description("预留字段1"), MaxLength(1000, ErrorMessage = "预留字段1 不能超过 1000 个字符")]
public string Reverse1 { get; set; }
/// <summary>
/// 预留字段2
/// </summary>
[Display(Name = "Reverse2"), Description("预留字段2"), MaxLength(1000, ErrorMessage = "预留字段2 不能超过 1000 个字符")]
public string Reverse2 { get; set; }
/// <summary>
/// 预留字段3
/// </summary>
[Display(Name = "Reverse3"), Description("预留字段3"), MaxLength(1000, ErrorMessage = "预留字段3 不能超过 1000 个字符")]
public string Reverse3 { get; set; }
/// <summary>
/// 预留字段4
/// </summary>
[Display(Name = "Reverse4"), Description("预留字段4"), MaxLength(1000, ErrorMessage = "预留字段4 不能超过 1000 个字符")]
public string Reverse4 { get; set; }
/// <summary>
/// 预留字段5
/// </summary>
[Display(Name = "Reverse5"), Description("预留字段5"), MaxLength(1000, ErrorMessage = "预留字段5 不能超过 1000 个字符")]
public string Reverse5 { get; set; }
/// <summary>
/// 预留字段6
/// </summary>
[Display(Name = "Reverse6"), Description("预留字段6"), MaxLength(1000, ErrorMessage = "预留字段6 不能超过 1000 个字符")]
public string Reverse6 { get; set; }
/// <summary>
/// 预留字段7
/// </summary>
[Display(Name = "Reverse7"), Description("预留字段7"), MaxLength(1000, ErrorMessage = "预留字段7 不能超过 1000 个字符")]
public string Reverse7 { get; set; }
/// <summary>
/// 预留字段8
/// </summary>
[Display(Name = "Reverse8"), Description("预留字段8"), MaxLength(1000, ErrorMessage = "预留字段8 不能超过 1000 个字符")]
public string Reverse8 { get; set; }
/// <summary>
/// 预留字段9
/// </summary>
[Display(Name = "Reverse9"), Description("预留字段9"), MaxLength(1000, ErrorMessage = "预留字段9 不能超过 1000 个字符")]
public string Reverse9 { get; set; }
/// <summary>
/// 预留字段10
/// </summary>
[Display(Name = "Reverse10"), Description("预留字段10"), MaxLength(1000, ErrorMessage = "预留字段10 不能超过 1000 个字符")]
public string Reverse10 { get; set; }
/// <summary>
/// 预留字段11
/// </summary>
public int? ReverseI1 { get; set; }
/// <summary>
/// 预留字段12
/// </summary>
public int? ReverseI2 { get; set; }
}
}

@ -0,0 +1,27 @@
/* ,
* Ghrh_ResumeInfoGroup.cs
*
* N / A
* Ghrh_ResumeInfoGroup
*
* Ver
*
*V0.01 2024/10/11 15:09:37 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models
{
/// <summary>
/// 简历组别 (Dto.EditInput)
/// </summary>
public class EditGhrh_ResumeInfoGroupInput : Ghrh_ResumeInfoGroupBase
{
}
}

@ -0,0 +1,27 @@
/* ,
* Ghrh_ResumeInfoGroup.cs
*
* N / A
* Ghrh_ResumeInfoGroup
*
* Ver
*
*V0.01 2024/10/11 15:09:37 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models
{
/// <summary>
/// 简历组别 (Dto.InsertInput)
/// </summary>
public class InsertGhrh_ResumeInfoGroupInput : Ghrh_ResumeInfoGroupBase
{
}
}

@ -0,0 +1,169 @@
/* ,
* Ghrh_ResumeInfoGroup.cs
*
* N / A
* Ghrh_ResumeInfoGroup
*
* Ver
*
*V0.01 2024/10/11 15:09:37 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using SqlSugar;
namespace Tiobon.Core.Model.Models
{
/// <summary>
/// 简历组别 (Model)
/// </summary>
[SugarTable("Ghrh_ResumeInfoGroup", "Ghrh_ResumeInfoGroup"), Entity(TableCnName = "简历组别", TableName = "Ghrh_ResumeInfoGroup")]
public class Ghrh_ResumeInfoGroup : BasePoco
{
/// <summary>
/// 组别编号
/// </summary>
[Display(Name = "GroupNo"), Description("组别编号"), MaxLength(100, ErrorMessage = "组别编号 不能超过 100 个字符")]
public string GroupNo { get; set; }
/// <summary>
/// 组别名
/// </summary>
[Display(Name = "GroupName"), Description("组别名"), MaxLength(100, ErrorMessage = "组别名 不能超过 100 个字符")]
public string GroupName { get; set; }
/// <summary>
/// 多语Key
/// </summary>
[Display(Name = "MKey"), Description("多语Key"), MaxLength(100, ErrorMessage = "多语Key 不能超过 100 个字符")]
public string MKey { get; set; }
/// <summary>
/// 组别类型
/// </summary>
[Display(Name = "GroupType"), Description("组别类型"), MaxLength(100, ErrorMessage = "组别类型 不能超过 100 个字符")]
public string GroupType { get; set; }
/// <summary>
/// 表名
/// </summary>
[Display(Name = "TableName"), Description("表名"), MaxLength(100, ErrorMessage = "表名 不能超过 100 个字符")]
public string TableName { get; set; }
/// <summary>
/// 主键名
/// </summary>
[Display(Name = "TablePKIDName"), Description("主键名"), MaxLength(100, ErrorMessage = "主键名 不能超过 100 个字符")]
public string TablePKIDName { get; set; }
/// <summary>
/// 多表名
/// </summary>
[Display(Name = "TableNames"), Description("多表名"), MaxLength(1000, ErrorMessage = "多表名 不能超过 1000 个字符")]
public string TableNames { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int? SortNo { get; set; }
/// <summary>
/// 员工可修改
/// </summary>
public int? CanModifyBySelf { get; set; }
/// <summary>
/// ESS 显示
/// </summary>
public int? CanEssDisplay { get; set; }
/// <summary>
/// 备注
/// </summary>
[Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")]
public string RemarkSz { get; set; }
/// <summary>
/// 默认标志
/// </summary>
public int? IsDefault { get; set; }
/// <summary>
/// 预留字段1
/// </summary>
[Display(Name = "Reverse1"), Description("预留字段1"), MaxLength(1000, ErrorMessage = "预留字段1 不能超过 1000 个字符")]
public string Reverse1 { get; set; }
/// <summary>
/// 预留字段2
/// </summary>
[Display(Name = "Reverse2"), Description("预留字段2"), MaxLength(1000, ErrorMessage = "预留字段2 不能超过 1000 个字符")]
public string Reverse2 { get; set; }
/// <summary>
/// 预留字段3
/// </summary>
[Display(Name = "Reverse3"), Description("预留字段3"), MaxLength(1000, ErrorMessage = "预留字段3 不能超过 1000 个字符")]
public string Reverse3 { get; set; }
/// <summary>
/// 预留字段4
/// </summary>
[Display(Name = "Reverse4"), Description("预留字段4"), MaxLength(1000, ErrorMessage = "预留字段4 不能超过 1000 个字符")]
public string Reverse4 { get; set; }
/// <summary>
/// 预留字段5
/// </summary>
[Display(Name = "Reverse5"), Description("预留字段5"), MaxLength(1000, ErrorMessage = "预留字段5 不能超过 1000 个字符")]
public string Reverse5 { get; set; }
/// <summary>
/// 预留字段6
/// </summary>
[Display(Name = "Reverse6"), Description("预留字段6"), MaxLength(1000, ErrorMessage = "预留字段6 不能超过 1000 个字符")]
public string Reverse6 { get; set; }
/// <summary>
/// 预留字段7
/// </summary>
[Display(Name = "Reverse7"), Description("预留字段7"), MaxLength(1000, ErrorMessage = "预留字段7 不能超过 1000 个字符")]
public string Reverse7 { get; set; }
/// <summary>
/// 预留字段8
/// </summary>
[Display(Name = "Reverse8"), Description("预留字段8"), MaxLength(1000, ErrorMessage = "预留字段8 不能超过 1000 个字符")]
public string Reverse8 { get; set; }
/// <summary>
/// 预留字段9
/// </summary>
[Display(Name = "Reverse9"), Description("预留字段9"), MaxLength(1000, ErrorMessage = "预留字段9 不能超过 1000 个字符")]
public string Reverse9 { get; set; }
/// <summary>
/// 预留字段10
/// </summary>
[Display(Name = "Reverse10"), Description("预留字段10"), MaxLength(1000, ErrorMessage = "预留字段10 不能超过 1000 个字符")]
public string Reverse10 { get; set; }
/// <summary>
/// 预留字段11
/// </summary>
public int? ReverseI1 { get; set; }
/// <summary>
/// 预留字段12
/// </summary>
public int? ReverseI2 { get; set; }
}
}

@ -0,0 +1,44 @@
/* ,
* Ghrh_ResumeInfoGroup.cs
*
* N / A
* Ghrh_ResumeInfoGroup
*
* Ver
*
*V0.01 2024/10/11 15:09:37 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models;
/// <summary>
/// 简历组别(Dto.View1)
/// </summary>
public class Ghrh_ResumeInfoGroupDto : Ghrh_ResumeInfoGroup
{
/// <summary>
/// 创建信息
/// </summary>
public string CreateDataInfo { get; set; }
/// <summary>
/// 修改信息
/// </summary>
public string UpdateDataInfo { get; set; }
public long ResumeInfoGroupID { get; set; }
public string ResumeInfoGroupName { get; set; }
public int editable { get; set; }
public int removable { get; set; }
public int canDrag { get; set; }
public int canHide { get; set; }
public int configurable { get; set; }
public int isDisplay { get; set; }
public string GroupColumn1 { get; set; }
public List<Dictionary<string, object>> GroupColumn { get; set; }
}

@ -0,0 +1,23 @@

using Tiobon.Core.IServices;
using Tiobon.Core.Model.Models;
using Tiobon.Core.Services.BASE;
using Tiobon.Core.IRepository.Base;
using Tiobon.Core.Common.Caches;
namespace Tiobon.Core.Services
{
/// <summary>
/// 简历组别 (服务)
/// </summary>
public class Ghrh_ResumeInfoGroupServices : BaseServices<Ghrh_ResumeInfoGroup, Ghrh_ResumeInfoGroupDto, InsertGhrh_ResumeInfoGroupInput, EditGhrh_ResumeInfoGroupInput>, IGhrh_ResumeInfoGroupServices
{
private readonly IBaseRepository<Ghrh_ResumeInfoGroup> _dal;
public Ghrh_ResumeInfoGroupServices(ICaching caching, IBaseRepository<Ghrh_ResumeInfoGroup> dal)
{
this._dal = dal;
base.BaseDal = dal;
base._caching = caching;
}
}
}

@ -6,36 +6,164 @@ using Tiobon.Core.IRepository.Base;
using Tiobon.Core.Common.Caches;
using Tiobon.Core.Model;
using Tiobon.Core.Common;
using Tiobon.Core.Common.Helper;
namespace Tiobon.Core.Services
namespace Tiobon.Core.Services;
/// <summary>
/// 简历模板 (服务)
/// </summary>
public class Ghrh_ResumeTemplateServices : BaseServices<Ghrh_ResumeTemplate, Ghrh_ResumeTemplateDto, InsertGhrh_ResumeTemplateInput, EditGhrh_ResumeTemplateInput>, IGhrh_ResumeTemplateServices
{
/// <summary>
/// 简历模板 (服务)
/// </summary>
public class Ghrh_ResumeTemplateServices : BaseServices<Ghrh_ResumeTemplate, Ghrh_ResumeTemplateDto, InsertGhrh_ResumeTemplateInput, EditGhrh_ResumeTemplateInput>, IGhrh_ResumeTemplateServices
private readonly IBaseRepository<Ghrh_ResumeTemplate> _dal;
public Ghrh_ResumeTemplateServices(ICaching caching, IBaseRepository<Ghrh_ResumeTemplate> dal)
{
private readonly IBaseRepository<Ghrh_ResumeTemplate> _dal;
public Ghrh_ResumeTemplateServices(ICaching caching, IBaseRepository<Ghrh_ResumeTemplate> dal)
{
this._dal = dal;
base.BaseDal = dal;
base._caching = caching;
}
this._dal = dal;
base.BaseDal = dal;
base._caching = caching;
}
#region 是否开启
public async Task<ServiceResult> SwitchPublish(long id, int? isPublish)
{
await Db.Updateable<Ghrh_ResumeTemplate>()
.SetColumns(it => new Ghrh_ResumeTemplate()
{
IsPublish = isPublish,
UpdateBy = App.User.ID,
UpdateTime = DateTime.Now
})
.Where(it => it.Id == id)
.ExecuteCommandAsync();
return ServiceResult.OprateSuccess();
}
#endregion
#region 获取分组数据
public async Task<ServiceResult<List<Ghrh_ResumeInfoGroupDto>>> QueryGroup(QueryForm filter)
{
var sql = @$"DECLARE
@MasterTemplateID INT = 0,
@TemplateType INT,
@ID BIGINT -- ID
SELECT @ID = {filter.id}
SELECT @TemplateType = TemplateType
FROM Ghrh_ResumeTemplate
WHERE ID = @ID
SELECT @MasterTemplateID = ID
FROM Ghrh_ResumeTemplate
WHERE IsEnable = 1 AND TemplateType = 1
SELECT a.ID,
b.ID ResumeInfoGroupID,
b.GroupName ResumeInfoGroupName,
b.GroupType,
b.TableName,
b.TablePKIDName,
b.CanModifyBySelf,
b.CanEssDisplay,
CASE WHEN @TemplateType = 1 THEN 1 ELSE 0 END editable, --
CASE
WHEN @TemplateType = 1 AND b.GroupType = 'Other' THEN 1
ELSE 0
END removable, --
CASE
WHEN b.GroupType = 'Base' OR b.GroupType = 'Photo' THEN 0
ELSE 1
END canDrag, --
CASE WHEN b.GroupType = 'Base' THEN 0 ELSE 1 END canHide, --
CASE
WHEN @TemplateType = 1 AND b.GroupType ! = 'Attachment'
OR @TemplateType ! = 1 AND b.GroupType = 'Base'
THEN
1
ELSE
0
END configurable, --
ISNULL (a.IsDisplay, 0) isDisplay,
isnull (a.SortNo, b.SortNo) SortNo,
-- case when ISNULL(a.IsDisplay,0)=0 then ''
CASE
WHEN 1 = 2
THEN
NULL
ELSE
CASE
WHEN b.GroupType = 'Base' --
THEN
isnull
(
(SELECT pp.ResumeInfoColumnName,
pp.Id ResumeInfoColumnId,
pp.IsSingleColumn,
pp.DataType,
pp.ColumnType,
kk.SortNo,
pp.Placeholder,
pp.CanModifyBySelf
FROM Ghrh_ResumeTemplateInfoGroupColumn kk,
Ghrh_ResumeInfoColumn pp
WHERE kk.ResumeTemplateInfoGroupID = a.ID
AND kk.ResumeInfoColumnID = pp.ID
AND kk.IsDisplay = 1
AND pp.IsEnable = 1
AND kk.IsEnable = 1
order by kk.SortNo
FOR JSON PATH, INCLUDE_NULL_VALUES),
NULL)
WHEN b.GroupType = 'Photo' --
THEN
(SELECT PhotoType
FROM Ghrh_ResumeTemplate
WHERE ID = @MasterTemplateID
FOR JSON PATH, INCLUDE_NULL_VALUES)
WHEN b.GroupType NOT IN ('Base', 'Photo') --
THEN
isnull
(
(SELECT pp.ResumeInfoColumnName,
pp.Id ResumeInfoColumnId,
pp.IsSingleColumn,
pp.DataType,
pp.ColumnType,
kk.SortNo,
pp.Placeholder,
pp.CanModifyBySelf
FROM Ghrh_ResumeTemplateInfoGroupColumn kk,
Ghrh_ResumeInfoColumn pp
WHERE kk.ID = @MasterTemplateID
AND kk.ResumeInfoGroupId = b.Id
AND pp.Id = kk.ResumeInfoColumnId
AND kk.IsDisplay = 1
AND pp.IsEnable = 1
AND kk.IsEnable = 1
order by kk.SortNo
FOR JSON PATH, INCLUDE_NULL_VALUES),
NULL)
END
END GroupColumn1
FROM Ghrh_ResumeInfoGroup b
LEFT JOIN Ghrh_ResumeTemplateInfoGroup a
ON a.ResumeInfoGroupId = b.ID
AND a.IsEnable = 1 -- and a.IsDisplay=1
AND a.ResumeTemplateID = @ID
WHERE b.IsEnable = 1
-- order by ISNULL(a.IsDisplay,0) desc,isnull(a.SortNo,b.SortNo) -- , ,
ORDER BY a.SortNo asc -- , , ";
var entitys = await Db.Ado.SqlQueryAsync<Ghrh_ResumeInfoGroupDto>(sql);
#region 是否开启
public async Task<ServiceResult> SwitchPublish(long id, int? isPublish)
entitys.ForEach(x =>
{
await Db.Updateable<Ghrh_ResumeTemplate>()
.SetColumns(it => new Ghrh_ResumeTemplate()
{
IsPublish = isPublish,
UpdateBy = App.User.ID,
UpdateTime = DateTime.Now
})
.Where(it => it.Id == id)
.ExecuteCommandAsync();
return ServiceResult.OprateSuccess();
}
#endregion
if (x.GroupColumn1.IsNotEmptyOrNull())
x.GroupColumn = JsonHelper.JsonToObj<List<Dictionary<string, object>>>(x.GroupColumn1);
x.GroupColumn1 = null;
});
return ServiceResult<List<Ghrh_ResumeInfoGroupDto>>.OprateSuccess("查询成功!", entitys);
}
#endregion
}
Loading…
Cancel
Save