diff --git a/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ConfigController.cs b/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ConfigController.cs new file mode 100644 index 00000000..818599f7 --- /dev/null +++ b/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ConfigController.cs @@ -0,0 +1,24 @@ +namespace Tiobon.Core.Api.Controllers; + +/// +/// 招聘参数配置(Controller) +/// +[Route("api/[controller]")] +[ApiController, GlobalActionFilter] +[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghrh)] +public class Ghrh_ConfigController : BaseController +{ + public Ghrh_ConfigController(IGhrh_ConfigServices service) : base(service) + { + } + + /// + /// 批量更新数据 + /// + /// + [HttpPost, Route("BulkUpdateValue")] + public virtual async Task BulkUpdateValue([FromBody] List entitys) + { + return await _service.BulkUpdateValue(entitys); + } +} \ No newline at end of file diff --git a/Tiobon.Core.Api/Tiobon.Core.Model.xml b/Tiobon.Core.Api/Tiobon.Core.Model.xml index e7ba2e29..1f2b5ac1 100644 --- a/Tiobon.Core.Api/Tiobon.Core.Model.xml +++ b/Tiobon.Core.Api/Tiobon.Core.Model.xml @@ -5965,6 +5965,116 @@ 预留字段12 + + + 招聘参数配置 (Dto.Base) + + + + + 参数名称 + + + + + 参数代码 + + + + + 参数值 + + + + + 参数类型 + + + + + 配置内容 + + + + + 排序 + + + + + 是否多选 + + + + + 备注 + + + + + 默认标志 + + + + + 预留字段1 + + + + + 预留字段2 + + + + + 预留字段3 + + + + + 预留字段4 + + + + + 预留字段5 + + + + + 预留字段6 + + + + + 预留字段7 + + + + + 预留字段8 + + + + + 预留字段9 + + + + + 预留字段10 + + + + + 预留字段11 + + + + + 预留字段12 + + 人力需求维护 (Dto.Base) @@ -10112,6 +10222,11 @@ 培训讲师异动附件 (Dto.EditInput) + + + 招聘参数配置 (Dto.EditInput) + + 人力需求维护 (Dto.EditInput) @@ -10467,6 +10582,11 @@ 培训讲师异动附件 (Dto.InsertInput) + + + 招聘参数配置 (Dto.InsertInput) + + 人力需求维护 (Dto.InsertInput) @@ -16871,6 +16991,116 @@ 任务内存中的状态 + + + 招聘参数配置 (Model) + + + + + 参数名称 + + + + + 参数代码 + + + + + 参数值 + + + + + 参数类型 + + + + + 配置内容 + + + + + 排序 + + + + + 是否多选 + + + + + 备注 + + + + + 默认标志 + + + + + 预留字段1 + + + + + 预留字段2 + + + + + 预留字段3 + + + + + 预留字段4 + + + + + 预留字段5 + + + + + 预留字段6 + + + + + 预留字段7 + + + + + 预留字段8 + + + + + 预留字段9 + + + + + 预留字段10 + + + + + 预留字段11 + + + + + 预留字段12 + + 人力需求维护 (Model) @@ -22342,6 +22572,21 @@ 修改信息 + + + 招聘参数配置(Dto.View1) + + + + + 创建信息 + + + + + 修改信息 + + 人力需求维护(Dto.View1) diff --git a/Tiobon.Core.Api/Tiobon.Core.xml b/Tiobon.Core.Api/Tiobon.Core.xml index d770247b..8e836bb8 100644 --- a/Tiobon.Core.Api/Tiobon.Core.xml +++ b/Tiobon.Core.Api/Tiobon.Core.xml @@ -1234,6 +1234,17 @@ status + + + 招聘参数配置(Controller) + + + + + 批量更新数据 + + + 人力需求维护(Controller) diff --git a/Tiobon.Core.IServices/Ghrh/IGhrh_ConfigServices.cs b/Tiobon.Core.IServices/Ghrh/IGhrh_ConfigServices.cs new file mode 100644 index 00000000..c7ea6700 --- /dev/null +++ b/Tiobon.Core.IServices/Ghrh/IGhrh_ConfigServices.cs @@ -0,0 +1,13 @@ +using Tiobon.Core.IServices.BASE; +using Tiobon.Core.Model; +using Tiobon.Core.Model.Models; + +namespace Tiobon.Core.IServices; + +/// +/// 招聘参数配置(自定义服务接口) +/// +public interface IGhrh_ConfigServices : IBaseServices +{ + Task BulkUpdateValue(List entitys); +} \ No newline at end of file diff --git a/Tiobon.Core.Model/Base/Ghrh/Ghrh_Config.Dto.Base.cs b/Tiobon.Core.Model/Base/Ghrh/Ghrh_Config.Dto.Base.cs new file mode 100644 index 00000000..e058fb47 --- /dev/null +++ b/Tiobon.Core.Model/Base/Ghrh/Ghrh_Config.Dto.Base.cs @@ -0,0 +1,146 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrh_Config.cs +* +*功 能: N / A +* 类 名: Ghrh_Config +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/11/28 14:23:08 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ +namespace Tiobon.Core.Model.Models; + + +/// +/// 招聘参数配置 (Dto.Base) +/// +public class Ghrh_ConfigBase +{ + + /// + /// 参数名称 + /// + [Display(Name = "ConfigName"), Description("参数名称"), MaxLength(32, ErrorMessage = "参数名称 不能超过 32 个字符")] + public string ConfigName { get; set; } + + /// + /// 参数代码 + /// + [Display(Name = "ConfigCode"), Description("参数代码"), MaxLength(32, ErrorMessage = "参数代码 不能超过 32 个字符")] + public string ConfigCode { get; set; } + + /// + /// 参数值 + /// + [Display(Name = "ConfigValue"), Description("参数值"), MaxLength(32, ErrorMessage = "参数值 不能超过 32 个字符")] + public string ConfigValue { get; set; } + + /// + /// 参数类型 + /// + [Display(Name = "InputType"), Description("参数类型"), MaxLength(32, ErrorMessage = "参数类型 不能超过 32 个字符")] + public string InputType { get; set; } + + /// + /// 配置内容 + /// + [Display(Name = "AvailableValue"), Description("配置内容"), MaxLength(128, ErrorMessage = "配置内容 不能超过 128 个字符")] + public string AvailableValue { get; set; } + + /// + /// 排序 + /// + public int? Sequence { get; set; } + + /// + /// 是否多选 + /// + public bool? IsMultiple { get; set; } + + /// + /// 备注 + /// + [Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")] + public string RemarkSz { get; set; } + + /// + /// 默认标志 + /// + public int? IsDefault { get; set; } + + /// + /// 预留字段1 + /// + [Display(Name = "Reverse1"), Description("预留字段1"), MaxLength(1000, ErrorMessage = "预留字段1 不能超过 1000 个字符")] + public string Reverse1 { get; set; } + + /// + /// 预留字段2 + /// + [Display(Name = "Reverse2"), Description("预留字段2"), MaxLength(1000, ErrorMessage = "预留字段2 不能超过 1000 个字符")] + public string Reverse2 { get; set; } + + /// + /// 预留字段3 + /// + [Display(Name = "Reverse3"), Description("预留字段3"), MaxLength(1000, ErrorMessage = "预留字段3 不能超过 1000 个字符")] + public string Reverse3 { get; set; } + + /// + /// 预留字段4 + /// + [Display(Name = "Reverse4"), Description("预留字段4"), MaxLength(1000, ErrorMessage = "预留字段4 不能超过 1000 个字符")] + public string Reverse4 { get; set; } + + /// + /// 预留字段5 + /// + [Display(Name = "Reverse5"), Description("预留字段5"), MaxLength(1000, ErrorMessage = "预留字段5 不能超过 1000 个字符")] + public string Reverse5 { get; set; } + + /// + /// 预留字段6 + /// + [Display(Name = "Reverse6"), Description("预留字段6"), MaxLength(1000, ErrorMessage = "预留字段6 不能超过 1000 个字符")] + public string Reverse6 { get; set; } + + /// + /// 预留字段7 + /// + [Display(Name = "Reverse7"), Description("预留字段7"), MaxLength(1000, ErrorMessage = "预留字段7 不能超过 1000 个字符")] + public string Reverse7 { get; set; } + + /// + /// 预留字段8 + /// + [Display(Name = "Reverse8"), Description("预留字段8"), MaxLength(1000, ErrorMessage = "预留字段8 不能超过 1000 个字符")] + public string Reverse8 { get; set; } + + /// + /// 预留字段9 + /// + [Display(Name = "Reverse9"), Description("预留字段9"), MaxLength(1000, ErrorMessage = "预留字段9 不能超过 1000 个字符")] + public string Reverse9 { get; set; } + + /// + /// 预留字段10 + /// + [Display(Name = "Reverse10"), Description("预留字段10"), MaxLength(1000, ErrorMessage = "预留字段10 不能超过 1000 个字符")] + public string Reverse10 { get; set; } + + /// + /// 预留字段11 + /// + public int? ReverseI1 { get; set; } + + /// + /// 预留字段12 + /// + public int? ReverseI2 { get; set; } +} diff --git a/Tiobon.Core.Model/Edit/Ghrh/Ghrh_Config.Dto.EditInput.cs b/Tiobon.Core.Model/Edit/Ghrh/Ghrh_Config.Dto.EditInput.cs new file mode 100644 index 00000000..40f62945 --- /dev/null +++ b/Tiobon.Core.Model/Edit/Ghrh/Ghrh_Config.Dto.EditInput.cs @@ -0,0 +1,26 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrh_Config.cs +* +*功 能: N / A +* 类 名: Ghrh_Config +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/11/28 14:23:08 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models; + + +/// +/// 招聘参数配置 (Dto.EditInput) +/// +public class EditGhrh_ConfigInput : Ghrh_ConfigBase +{ +} diff --git a/Tiobon.Core.Model/Insert/Ghrh/Ghrh_Config.Dto.InsertInput.cs b/Tiobon.Core.Model/Insert/Ghrh/Ghrh_Config.Dto.InsertInput.cs new file mode 100644 index 00000000..0fe992ba --- /dev/null +++ b/Tiobon.Core.Model/Insert/Ghrh/Ghrh_Config.Dto.InsertInput.cs @@ -0,0 +1,26 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrh_Config.cs +* +*功 能: N / A +* 类 名: Ghrh_Config +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/11/28 14:23:08 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models; + + +/// +/// 招聘参数配置 (Dto.InsertInput) +/// +public class InsertGhrh_ConfigInput : Ghrh_ConfigBase +{ +} diff --git a/Tiobon.Core.Model/Models/Ghrh/Ghrh_Config.cs b/Tiobon.Core.Model/Models/Ghrh/Ghrh_Config.cs new file mode 100644 index 00000000..76839453 --- /dev/null +++ b/Tiobon.Core.Model/Models/Ghrh/Ghrh_Config.cs @@ -0,0 +1,147 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrh_Config.cs +* +*功 能: N / A +* 类 名: Ghrh_Config +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/11/28 14:23:08 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ +namespace Tiobon.Core.Model.Models; + + +/// +/// 招聘参数配置 (Model) +/// +[SugarTable("Ghrh_Config", "Ghrh_Config"), Entity(TableCnName = "招聘参数配置", TableName = "Ghrh_Config")] +public class Ghrh_Config : BasePoco +{ + + /// + /// 参数名称 + /// + [Display(Name = "ConfigName"), Description("参数名称"), MaxLength(32, ErrorMessage = "参数名称 不能超过 32 个字符")] + public string ConfigName { get; set; } + + /// + /// 参数代码 + /// + [Display(Name = "ConfigCode"), Description("参数代码"), MaxLength(32, ErrorMessage = "参数代码 不能超过 32 个字符")] + public string ConfigCode { get; set; } + + /// + /// 参数值 + /// + [Display(Name = "ConfigValue"), Description("参数值"), MaxLength(32, ErrorMessage = "参数值 不能超过 32 个字符")] + public string ConfigValue { get; set; } + + /// + /// 参数类型 + /// + [Display(Name = "InputType"), Description("参数类型"), MaxLength(32, ErrorMessage = "参数类型 不能超过 32 个字符")] + public string InputType { get; set; } + + /// + /// 配置内容 + /// + [Display(Name = "AvailableValue"), Description("配置内容"), MaxLength(128, ErrorMessage = "配置内容 不能超过 128 个字符")] + public string AvailableValue { get; set; } + + /// + /// 排序 + /// + public int? Sequence { get; set; } + + /// + /// 是否多选 + /// + public bool? IsMultiple { get; set; } + + /// + /// 备注 + /// + [Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")] + public string RemarkSz { get; set; } + + /// + /// 默认标志 + /// + public int? IsDefault { get; set; } + + /// + /// 预留字段1 + /// + [Display(Name = "Reverse1"), Description("预留字段1"), MaxLength(1000, ErrorMessage = "预留字段1 不能超过 1000 个字符")] + public string Reverse1 { get; set; } + + /// + /// 预留字段2 + /// + [Display(Name = "Reverse2"), Description("预留字段2"), MaxLength(1000, ErrorMessage = "预留字段2 不能超过 1000 个字符")] + public string Reverse2 { get; set; } + + /// + /// 预留字段3 + /// + [Display(Name = "Reverse3"), Description("预留字段3"), MaxLength(1000, ErrorMessage = "预留字段3 不能超过 1000 个字符")] + public string Reverse3 { get; set; } + + /// + /// 预留字段4 + /// + [Display(Name = "Reverse4"), Description("预留字段4"), MaxLength(1000, ErrorMessage = "预留字段4 不能超过 1000 个字符")] + public string Reverse4 { get; set; } + + /// + /// 预留字段5 + /// + [Display(Name = "Reverse5"), Description("预留字段5"), MaxLength(1000, ErrorMessage = "预留字段5 不能超过 1000 个字符")] + public string Reverse5 { get; set; } + + /// + /// 预留字段6 + /// + [Display(Name = "Reverse6"), Description("预留字段6"), MaxLength(1000, ErrorMessage = "预留字段6 不能超过 1000 个字符")] + public string Reverse6 { get; set; } + + /// + /// 预留字段7 + /// + [Display(Name = "Reverse7"), Description("预留字段7"), MaxLength(1000, ErrorMessage = "预留字段7 不能超过 1000 个字符")] + public string Reverse7 { get; set; } + + /// + /// 预留字段8 + /// + [Display(Name = "Reverse8"), Description("预留字段8"), MaxLength(1000, ErrorMessage = "预留字段8 不能超过 1000 个字符")] + public string Reverse8 { get; set; } + + /// + /// 预留字段9 + /// + [Display(Name = "Reverse9"), Description("预留字段9"), MaxLength(1000, ErrorMessage = "预留字段9 不能超过 1000 个字符")] + public string Reverse9 { get; set; } + + /// + /// 预留字段10 + /// + [Display(Name = "Reverse10"), Description("预留字段10"), MaxLength(1000, ErrorMessage = "预留字段10 不能超过 1000 个字符")] + public string Reverse10 { get; set; } + + /// + /// 预留字段11 + /// + public int? ReverseI1 { get; set; } + + /// + /// 预留字段12 + /// + public int? ReverseI2 { get; set; } +} diff --git a/Tiobon.Core.Model/View/Ghrh/Ghrh_Config.Dto.View.cs b/Tiobon.Core.Model/View/Ghrh/Ghrh_Config.Dto.View.cs new file mode 100644 index 00000000..c6d75d4f --- /dev/null +++ b/Tiobon.Core.Model/View/Ghrh/Ghrh_Config.Dto.View.cs @@ -0,0 +1,34 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrh_Config.cs +* +*功 能: N / A +* 类 名: Ghrh_Config +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/11/28 14:23:08 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models; + +/// +/// 招聘参数配置(Dto.View1) +/// +public class Ghrh_ConfigDto : Ghrh_Config +{ + /// + /// 创建信息 + /// + public string CreateDataInfo { get; set; } + + /// + /// 修改信息 + /// + public string UpdateDataInfo { get; set; } +} diff --git a/Tiobon.Core.Services/Ghrh/Ghrh_ConfigServices.cs b/Tiobon.Core.Services/Ghrh/Ghrh_ConfigServices.cs new file mode 100644 index 00000000..b95c44b0 --- /dev/null +++ b/Tiobon.Core.Services/Ghrh/Ghrh_ConfigServices.cs @@ -0,0 +1,29 @@ +namespace Tiobon.Core.Services; + +/// +/// 招聘参数配置 (服务) +/// +public class Ghrh_ConfigServices : BaseServices, IGhrh_ConfigServices +{ + private readonly IBaseRepository _dal; + public Ghrh_ConfigServices(ICaching caching, IBaseRepository dal) + { + this._dal = dal; + base.BaseDal = dal; + base._caching = caching; + } + + public async Task BulkUpdateValue(List entitys) + { + for (int i = 0; i < entitys.Count; i++) + { + await Db.Updateable() + .SetColumns(it => new Ghrh_Config() + { + ConfigValue = entitys[i].ConfigValue + }) + .Where(x => x.Id == entitys[i].Id).ExecuteCommandAsync(); + } + return ServiceResult.OprateSuccess(); + } +} \ No newline at end of file diff --git a/Tiobon.Core/Tiobon.Core.Model.xml b/Tiobon.Core/Tiobon.Core.Model.xml index e7ba2e29..1f2b5ac1 100644 --- a/Tiobon.Core/Tiobon.Core.Model.xml +++ b/Tiobon.Core/Tiobon.Core.Model.xml @@ -5965,6 +5965,116 @@ 预留字段12 + + + 招聘参数配置 (Dto.Base) + + + + + 参数名称 + + + + + 参数代码 + + + + + 参数值 + + + + + 参数类型 + + + + + 配置内容 + + + + + 排序 + + + + + 是否多选 + + + + + 备注 + + + + + 默认标志 + + + + + 预留字段1 + + + + + 预留字段2 + + + + + 预留字段3 + + + + + 预留字段4 + + + + + 预留字段5 + + + + + 预留字段6 + + + + + 预留字段7 + + + + + 预留字段8 + + + + + 预留字段9 + + + + + 预留字段10 + + + + + 预留字段11 + + + + + 预留字段12 + + 人力需求维护 (Dto.Base) @@ -10112,6 +10222,11 @@ 培训讲师异动附件 (Dto.EditInput) + + + 招聘参数配置 (Dto.EditInput) + + 人力需求维护 (Dto.EditInput) @@ -10467,6 +10582,11 @@ 培训讲师异动附件 (Dto.InsertInput) + + + 招聘参数配置 (Dto.InsertInput) + + 人力需求维护 (Dto.InsertInput) @@ -16871,6 +16991,116 @@ 任务内存中的状态 + + + 招聘参数配置 (Model) + + + + + 参数名称 + + + + + 参数代码 + + + + + 参数值 + + + + + 参数类型 + + + + + 配置内容 + + + + + 排序 + + + + + 是否多选 + + + + + 备注 + + + + + 默认标志 + + + + + 预留字段1 + + + + + 预留字段2 + + + + + 预留字段3 + + + + + 预留字段4 + + + + + 预留字段5 + + + + + 预留字段6 + + + + + 预留字段7 + + + + + 预留字段8 + + + + + 预留字段9 + + + + + 预留字段10 + + + + + 预留字段11 + + + + + 预留字段12 + + 人力需求维护 (Model) @@ -22342,6 +22572,21 @@ 修改信息 + + + 招聘参数配置(Dto.View1) + + + + + 创建信息 + + + + + 修改信息 + + 人力需求维护(Dto.View1) diff --git a/Tiobon.Core/Tiobon.Core.xml b/Tiobon.Core/Tiobon.Core.xml index d770247b..8e836bb8 100644 --- a/Tiobon.Core/Tiobon.Core.xml +++ b/Tiobon.Core/Tiobon.Core.xml @@ -1234,6 +1234,17 @@ status + + + 招聘参数配置(Controller) + + + + + 批量更新数据 + + + 人力需求维护(Controller)