diff --git a/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs b/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs index f3a424e8..26d0dc81 100644 --- a/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs +++ b/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs @@ -39,8 +39,7 @@ public class Ghrh_ResumeController : BaseController + /// 不合适 + /// + /// 简历Id + /// + [HttpPost, Route("Fail/{id}")] + public async Task Fail(long id) => await _service.Fail(id); + #endregion + #region ESS端查询面试记录 /// /// ESS端查询面试记录 @@ -389,11 +398,11 @@ public class Ghrh_ResumeController : BaseController信息 - + 简历库已推荐提醒 diff --git a/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs b/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs index 5191e7f2..9802a4ca 100644 --- a/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs +++ b/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs @@ -57,4 +57,6 @@ public interface IGhrh_ResumeServices : IBaseServices ModifyIsOffer(long id, bool isOffer); Task> QueryESS(QueryBody filter, string condition); + + Task Fail(long id); } \ No newline at end of file diff --git a/Tiobon.Core.Model/Consts.cs b/Tiobon.Core.Model/Consts.cs index 051e14b5..c3c5d501 100644 --- a/Tiobon.Core.Model/Consts.cs +++ b/Tiobon.Core.Model/Consts.cs @@ -326,6 +326,10 @@ public class Consts /// 面试结束 /// public const string End = "End"; + /// + /// 不合格 + /// + public const string Fail = "Fail"; } #endregion } \ No newline at end of file diff --git a/Tiobon.Core.Services/CommonServices.cs b/Tiobon.Core.Services/CommonServices.cs index dae13d64..43220171 100644 --- a/Tiobon.Core.Services/CommonServices.cs +++ b/Tiobon.Core.Services/CommonServices.cs @@ -1278,7 +1278,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD9YN", + fnKey = "TBD10YN", fnTitle = "下载", fnType = "row", icon = "ess-icon-reject", @@ -1288,7 +1288,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD10YN", + fnKey = "TBD11YN", fnTitle = "提醒", fnType = "row", icon = "ess-icon-reject", @@ -1312,7 +1312,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD5YN", + fnKey = "TBD6YN", fnTitle = "标签", fnType = "row", icon = "ess-icon-reject", @@ -1322,7 +1322,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD6YN", + fnKey = "TBD7YN", fnTitle = "回收", fnType = "row", icon = "ess-icon-reject", @@ -1332,7 +1332,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD7YN", + fnKey = "TBD8YN", fnTitle = "加入人才库", fnType = "row", icon = "ess-icon-reject", @@ -1342,7 +1342,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD8YN", + fnKey = "TBD9YN", fnTitle = "加入黑名单", fnType = "row", icon = "ess-icon-reject", @@ -1352,28 +1352,28 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD9YN", + fnKey = "TBD10YN", fnTitle = "下载", fnType = "row", icon = "ess-icon-reject", position = "left" }); - if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeScheduleInterview").Any()) + if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeProcessRemind").Any()) result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD10YN", - fnTitle = "安排面试", + fnKey = "TBD12YN", + fnTitle = "提醒", fnType = "row", icon = "ess-icon-reject", position = "left" }); - if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeProcessRemind").Any()) + if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeScheduleInterview").Any()) result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD11YN", - fnTitle = "提醒", + fnKey = "TBD13YN", + fnTitle = "安排面试", fnType = "row", icon = "ess-icon-reject", position = "left" @@ -1382,7 +1382,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD12YN", + fnKey = "TBD14YN", fnTitle = "重新安排面试", fnType = "row", icon = "ess-icon-reject", @@ -1392,7 +1392,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD13YN", + fnKey = "TBD15YN", fnTitle = "发起录用审批", fnType = "row", icon = "ess-icon-reject", @@ -1415,7 +1415,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD5YN", + fnKey = "TBD6YN", fnTitle = "标签", fnType = "row", icon = "ess-icon-reject", @@ -1425,7 +1425,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD6YN", + fnKey = "TBD7YN", fnTitle = "回收", fnType = "row", icon = "ess-icon-reject", @@ -1435,7 +1435,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD7YN", + fnKey = "TBD8YN", fnTitle = "加入人才库", fnType = "row", icon = "ess-icon-reject", @@ -1445,7 +1445,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD8YN", + fnKey = "TBD9YN", fnTitle = "加入黑名单", fnType = "row", icon = "ess-icon-reject", @@ -1455,7 +1455,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD9YN", + fnKey = "TBD10YN", fnTitle = "下载", fnType = "row", icon = "ess-icon-reject", @@ -1465,7 +1465,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD10YN", + fnKey = "TBD16YN", fnTitle = "发offer", fnType = "row", icon = "ess-icon-reject", @@ -1475,7 +1475,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD11YN", + fnKey = "TBD17YN", fnTitle = "提醒", fnType = "row", icon = "ess-icon-reject", @@ -1485,7 +1485,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD12YN", + fnKey = "TBD18YN", fnTitle = "已报到", fnType = "row", icon = "ess-icon-reject", @@ -1495,7 +1495,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD13YN", + fnKey = "TBD19YN", fnTitle = "未报到", fnType = "row", icon = "ess-icon-reject", @@ -1519,7 +1519,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD5YN", + fnKey = "TBD6YN", fnTitle = "标签", fnType = "row", icon = "ess-icon-reject", @@ -1529,7 +1529,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD6YN", + fnKey = "TBD7YN", fnTitle = "回收", fnType = "row", icon = "ess-icon-reject", @@ -1539,7 +1539,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD7YN", + fnKey = "TBD9YN", fnTitle = "加入黑名单", fnType = "row", icon = "ess-icon-reject", @@ -1549,7 +1549,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD8YN", + fnKey = "TBD10YN", fnTitle = "下载", fnType = "row", icon = "ess-icon-reject", @@ -1572,7 +1572,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD5YN", + fnKey = "TBD6YN", fnTitle = "标签", fnType = "row", icon = "ess-icon-reject", @@ -1582,7 +1582,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD6YN", + fnKey = "TBD8YN", fnTitle = "加入人才库", fnType = "row", icon = "ess-icon-reject", @@ -1592,7 +1592,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD7YN", + fnKey = "TBD9YN", fnTitle = "加入黑名单", fnType = "row", icon = "ess-icon-reject", @@ -1602,7 +1602,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD8YN", + fnKey = "TBD10YN", fnTitle = "下载", fnType = "row", icon = "ess-icon-reject", @@ -1625,7 +1625,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD5YN", + fnKey = "TBD6YN", fnTitle = "标签", fnType = "row", icon = "ess-icon-reject", @@ -1635,7 +1635,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD6YN", + fnKey = "TBD8YN", fnTitle = "加入人才库", fnType = "row", icon = "ess-icon-reject", @@ -1655,7 +1655,7 @@ public partial class CommonServices : BaseServices>, ICommon result.JM_PageControlT1.Toolbar.Add(new Toolbar() { display = true, - fnKey = "TBD8YN", + fnKey = "TBD10YN", fnTitle = "下载", fnType = "row", icon = "ess-icon-reject", diff --git a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs index 1ce2aa68..8655038c 100644 --- a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs +++ b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs @@ -1769,6 +1769,34 @@ END"; } #endregion + #region 不合适 + public async Task Fail(long id) + { + var entity = await base.QueryById(id); + if (entity == null) + return ServiceResult.OprateFailed("无效的简历ID!"); + + entity.Status = DIC_INTERVIEW_ORDER_STATUS.Fail; + await Update(entity, ["Status"]); + + var order = await _ghrh_InterviewOrderServices.QuerySingle(x => x.ResumeId == id); + order.Status = DIC_INTERVIEW_ORDER_STATUS.Fail; + await _ghrh_InterviewOrderServices.Update(order, ["Status"]); + + var records = await _ghrh_InterviewRecordServices.Query(x => x.Round == order.Round && x.OrderId == order.Id); + records.ForEach(record => record.Status = DIC_INTERVIEW_ORDER_STATUS.Fail); + await _ghrh_InterviewRecordServices.Update(records, ["Status"]); + + var usser = await GetUser(); + await _ghrh_InterviewLogServices.Add(new InsertGhrh_InterviewLogInput() + { + OrderId = order.Id, + RemarkSz = $"用户【{usser?.UserName ?? App.User.ID.ToString()}】变更状态为:不合适!" + }); + return ServiceResult.OprateSuccess(); + } + #endregion + #region ESS端查询简历记录 public async Task> QueryESS(QueryBody filter, string condition) { diff --git a/Tiobon.Core/Tiobon.Core.xml b/Tiobon.Core/Tiobon.Core.xml index 5dc8a343..e68fde9b 100644 --- a/Tiobon.Core/Tiobon.Core.xml +++ b/Tiobon.Core/Tiobon.Core.xml @@ -1350,7 +1350,7 @@ 信息 - + 简历库已推荐提醒