diff --git a/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_TemplateController.cs b/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_TemplateController.cs index a2ac0daa..944cdf8d 100644 --- a/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_TemplateController.cs +++ b/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_TemplateController.cs @@ -11,4 +11,15 @@ public class Ghrh_TemplateController : BaseController + /// 是否开启 + /// + /// + /// + /// + [HttpPost("SwitchPublish/{id}/{isPublish}")] + public async Task SwitchPublish(long id, int? isPublish) => await _service.SwitchPublish(id, isPublish); + #endregion } \ 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 b6371914..599ac085 100644 --- a/Tiobon.Core.Api/Tiobon.Core.Model.xml +++ b/Tiobon.Core.Api/Tiobon.Core.Model.xml @@ -8785,6 +8785,101 @@ 预留字段12 + + + 招聘模板 (Dto.Base) + + + + + 模板名称 + + + + + 模板类型 + + + + + 模板内容 + + + + + 是否发布 + + + + + 备注 + + + + + 默认标志 + + + + + 预留字段1 + + + + + 预留字段2 + + + + + 预留字段3 + + + + + 预留字段4 + + + + + 预留字段5 + + + + + 预留字段6 + + + + + 预留字段7 + + + + + 预留字段8 + + + + + 预留字段9 + + + + + 预留字段10 + + + + + 预留字段11 + + + + + 预留字段12 + + 年度人力配置 (Dto.Base) @@ -10607,6 +10702,11 @@ 声明 (Dto.EditInput) + + + 招聘模板 (Dto.EditInput) + + 年度人力配置 (Dto.EditInput) @@ -10982,6 +11082,11 @@ 声明 (Dto.InsertInput) + + + 招聘模板 (Dto.InsertInput) + + 年度人力配置 (Dto.InsertInput) @@ -20126,6 +20231,101 @@ 预留字段12 + + + 招聘模板 (Model) + + + + + 模板名称 + + + + + 模板类型 + + + + + 模板内容 + + + + + 是否发布 + + + + + 备注 + + + + + 默认标志 + + + + + 预留字段1 + + + + + 预留字段2 + + + + + 预留字段3 + + + + + 预留字段4 + + + + + 预留字段5 + + + + + 预留字段6 + + + + + 预留字段7 + + + + + 预留字段8 + + + + + 预留字段9 + + + + + 预留字段10 + + + + + 预留字段11 + + + + + 预留字段12 + + 年度人力配置 (Model) @@ -23737,6 +23937,21 @@ 修改信息 + + + 招聘模板(Dto.View1) + + + + + 创建信息 + + + + + 修改信息 + + 年度人力配置(Dto.View1) diff --git a/Tiobon.Core.Api/Tiobon.Core.xml b/Tiobon.Core.Api/Tiobon.Core.xml index 8c03ef2d..8483b36d 100644 --- a/Tiobon.Core.Api/Tiobon.Core.xml +++ b/Tiobon.Core.Api/Tiobon.Core.xml @@ -1645,6 +1645,11 @@ 声明(Controller) + + + 招聘模板(Controller) + + 年度人力配置(Controller) diff --git a/Tiobon.Core.IServices/Ghrh/IGhrh_TemplateServices.cs b/Tiobon.Core.IServices/Ghrh/IGhrh_TemplateServices.cs index 44156285..d1d7d8ab 100644 --- a/Tiobon.Core.IServices/Ghrh/IGhrh_TemplateServices.cs +++ b/Tiobon.Core.IServices/Ghrh/IGhrh_TemplateServices.cs @@ -1,4 +1,5 @@ using Tiobon.Core.IServices.BASE; +using Tiobon.Core.Model; using Tiobon.Core.Model.Models; namespace Tiobon.Core.IServices; @@ -6,6 +7,7 @@ namespace Tiobon.Core.IServices; /// /// 招聘模板(自定义服务接口) /// - public interface IGhrh_TemplateServices :IBaseServices +public interface IGhrh_TemplateServices : IBaseServices { - } \ No newline at end of file + Task SwitchPublish(long id, int? isPublish); +} \ No newline at end of file diff --git a/Tiobon.Core.Services/CommonServices.cs b/Tiobon.Core.Services/CommonServices.cs index ca56a7d1..93abe668 100644 --- a/Tiobon.Core.Services/CommonServices.cs +++ b/Tiobon.Core.Services/CommonServices.cs @@ -1722,6 +1722,14 @@ public partial class CommonServices : BaseServices>, ICommon position = "left" }); break; + case "F_OfferTemplate": + toolbar = result.JM_PageControlT1.Toolbar.Where(x => x.fnKey == "NewYN").FirstOrDefault(); + if (toolbar != null) toolbar.fnKey = "TBD1YN"; + toolbar = result.JM_PageControlT1.Toolbar.Where(x => x.fnKey == "UpdateYN").FirstOrDefault(); + if (toolbar != null) toolbar.fnKey = "TBD2YN"; + toolbar = result.JM_PageControlT1.Toolbar.Where(x => x.fnKey == "DetailYN").FirstOrDefault(); + if (toolbar != null) toolbar.fnKey = "TBD3YN"; + break; } #endregion diff --git a/Tiobon.Core.Services/Ghrh/Ghrh_TemplateServices.cs b/Tiobon.Core.Services/Ghrh/Ghrh_TemplateServices.cs index d90ff393..8796e418 100644 --- a/Tiobon.Core.Services/Ghrh/Ghrh_TemplateServices.cs +++ b/Tiobon.Core.Services/Ghrh/Ghrh_TemplateServices.cs @@ -12,4 +12,33 @@ public class Ghrh_TemplateServices : BaseServices SwitchPublish(long id, int? isPublish) + { + + if (isPublish == 0) + return ServiceResult.OprateFailed("当前已开启状态 不可以取消!"); + + await Db.Updateable() + .SetColumns(it => new Ghrh_Template() + { + IsPublish = 0, + UpdateBy = App.User.ID, + UpdateTime = DateTime.Now + }) + .Where(it => it.IsPublish == 1) + .ExecuteCommandAsync(); + await Db.Updateable() + .SetColumns(it => new Ghrh_Template() + { + IsPublish = isPublish, + UpdateBy = App.User.ID, + UpdateTime = DateTime.Now + }) + .Where(it => it.Id == id) + .ExecuteCommandAsync(); + return ServiceResult.OprateSuccess(); + } + #endregion } \ No newline at end of file diff --git a/Tiobon.Core/Tiobon.Core.Model.xml b/Tiobon.Core/Tiobon.Core.Model.xml index b6371914..599ac085 100644 --- a/Tiobon.Core/Tiobon.Core.Model.xml +++ b/Tiobon.Core/Tiobon.Core.Model.xml @@ -8785,6 +8785,101 @@ 预留字段12 + + + 招聘模板 (Dto.Base) + + + + + 模板名称 + + + + + 模板类型 + + + + + 模板内容 + + + + + 是否发布 + + + + + 备注 + + + + + 默认标志 + + + + + 预留字段1 + + + + + 预留字段2 + + + + + 预留字段3 + + + + + 预留字段4 + + + + + 预留字段5 + + + + + 预留字段6 + + + + + 预留字段7 + + + + + 预留字段8 + + + + + 预留字段9 + + + + + 预留字段10 + + + + + 预留字段11 + + + + + 预留字段12 + + 年度人力配置 (Dto.Base) @@ -10607,6 +10702,11 @@ 声明 (Dto.EditInput) + + + 招聘模板 (Dto.EditInput) + + 年度人力配置 (Dto.EditInput) @@ -10982,6 +11082,11 @@ 声明 (Dto.InsertInput) + + + 招聘模板 (Dto.InsertInput) + + 年度人力配置 (Dto.InsertInput) @@ -20126,6 +20231,101 @@ 预留字段12 + + + 招聘模板 (Model) + + + + + 模板名称 + + + + + 模板类型 + + + + + 模板内容 + + + + + 是否发布 + + + + + 备注 + + + + + 默认标志 + + + + + 预留字段1 + + + + + 预留字段2 + + + + + 预留字段3 + + + + + 预留字段4 + + + + + 预留字段5 + + + + + 预留字段6 + + + + + 预留字段7 + + + + + 预留字段8 + + + + + 预留字段9 + + + + + 预留字段10 + + + + + 预留字段11 + + + + + 预留字段12 + + 年度人力配置 (Model) @@ -23737,6 +23937,21 @@ 修改信息 + + + 招聘模板(Dto.View1) + + + + + 创建信息 + + + + + 修改信息 + + 年度人力配置(Dto.View1) diff --git a/Tiobon.Core/Tiobon.Core.xml b/Tiobon.Core/Tiobon.Core.xml index 8c03ef2d..8483b36d 100644 --- a/Tiobon.Core/Tiobon.Core.xml +++ b/Tiobon.Core/Tiobon.Core.xml @@ -1645,6 +1645,11 @@ 声明(Controller) + + + 招聘模板(Controller) + + 年度人力配置(Controller)