diff --git a/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs b/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs index 068b4327..e5fbe9c4 100644 --- a/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs +++ b/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs @@ -415,4 +415,17 @@ public class Ghrh_ResumeController : BaseController + /// 获取安排面试表单信息 + /// + /// 简历ID + /// + [HttpPost, Route("QueryScheduleInterviewForm/{id}")] + public async Task> QueryScheduleInterviewForm(long id) + { + return await _service.QueryScheduleInterviewForm(id); + } + #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 9e6ebb35..a1256a42 100644 --- a/Tiobon.Core.Api/Tiobon.Core.Model.xml +++ b/Tiobon.Core.Api/Tiobon.Core.Model.xml @@ -23052,6 +23052,51 @@ 附件 + + + 人力需求维护ID + + + + + 部门 + + + + + 岗位 + + + + + 需求人数 + + + + + 已推荐人数 + + + + + 已面试人数 + + + + + 已录用人数 + + + + + 可约时间 + + + + + 附件 + + 员工ID diff --git a/Tiobon.Core.Api/Tiobon.Core.xml b/Tiobon.Core.Api/Tiobon.Core.xml index 681348e5..d3edad09 100644 --- a/Tiobon.Core.Api/Tiobon.Core.xml +++ b/Tiobon.Core.Api/Tiobon.Core.xml @@ -1456,6 +1456,13 @@ 状态 + + + ESS端查询面试记录 + + 简历ID + + 教育背景(Controller) diff --git a/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs b/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs index 78ed4d9d..8cc9be66 100644 --- a/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs +++ b/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs @@ -59,4 +59,6 @@ public interface IGhrh_ResumeServices : IBaseServices> QueryESS(QueryBody filter, string condition); Task Fail(long id); + + Task> QueryScheduleInterviewForm(long id); } \ No newline at end of file diff --git a/Tiobon.Core.Model/ViewModels/Extend/ResumeViewTab.cs b/Tiobon.Core.Model/ViewModels/Extend/ResumeViewTab.cs index 7e0d4232..10acde43 100644 --- a/Tiobon.Core.Model/ViewModels/Extend/ResumeViewTab.cs +++ b/Tiobon.Core.Model/ViewModels/Extend/ResumeViewTab.cs @@ -114,8 +114,57 @@ public class ResumeScheduleInterviewForm /// public List Attachments { get; set; } - + } +public class ResumeScheduleInterviewResult +{ + /// + /// 人力需求维护ID + /// + public long? RequestId { get; set; } + + /// + /// 部门 + /// + public string DeptName { get; set; } + + /// + /// 岗位 + /// + public string TitleName { get; set; } + + /// + /// 需求人数 + /// + public int? ResumeCount { get; set; } + + /// + /// 已推荐人数 + /// + public int? RecommendCount { get; set; } + + /// + /// 已面试人数 + /// + public int? InterviewCount { get; set; } + + /// + /// 已录用人数 + /// + public int? OfferCount { get; set; } + + /// + /// 可约时间 + /// + public List Times { get; set; } + + /// + /// 附件 + /// + public List Attachments { get; set; } = new(); + +} + public class ResumeRecommendFormStaff { /// diff --git a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs index 2e93f0c1..d0dd59d5 100644 --- a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs +++ b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs @@ -1,7 +1,4 @@ -using MySqlX.XDevAPI.Common; -using NPOI.XWPF.UserModel; -using Tiobon.Core.Common.DB.Dapper.Extensions; -using static Tiobon.Core.Model.Consts; +using static Tiobon.Core.Model.Consts; namespace Tiobon.Core.Services; @@ -35,6 +32,7 @@ public class Ghrh_ResumeServices : BaseServices private readonly IGhrh_InterviewLogServices _ghrh_InterviewLogServices; + private readonly IGhrh_HumanRequestServices _ghrh_HumanRequestServices; public Ghrh_ResumeServices(ICaching caching, IBaseRepository dal, IGhrh_ResumeEduBGServices ghre_ResumeEduBGServices, @@ -46,6 +44,7 @@ public class Ghrh_ResumeServices : BaseServices> QueryScheduleInterviewForm(long id) + { + var result = new ResumeScheduleInterviewResult(); + var entity = base.QueryById(id); + var order = await _ghrh_InterviewOrderServices.QuerySingle(x => x.ResumeId == id); + var record = await _ghrh_InterviewRecordServices.QuerySingle(x => x.Round == order.Round && x.OrderId == order.Id); + var request = await _ghrh_HumanRequestServices.QueryById(order.RequestId); + + result.RequestId = order.RequestId; + result.DeptName = request.BelongDeptName; + result.TitleName = request.TitleName; + result.ResumeCount = request.ResumeCount; + result.RecommendCount = request.RecommendCount; + result.InterviewCount = request.InterviewCount; + result.OfferCount = request.OfferCount; + result.Times = new List(); + if (record.PlanInterviewTime1.IsNotEmptyOrNull()) + result.Times.Add(record.PlanInterviewTime1); + + if (record.PlanInterviewTime2.IsNotEmptyOrNull()) + result.Times.Add(record.PlanInterviewTime2); + + if (record.PlanInterviewTime3.IsNotEmptyOrNull()) + result.Times.Add(record.PlanInterviewTime3); + + + + return ServiceResult.OprateSuccess("查询成功", result); + } + #endregion } \ No newline at end of file diff --git a/Tiobon.Core/Tiobon.Core.Model.xml b/Tiobon.Core/Tiobon.Core.Model.xml index 9e6ebb35..a1256a42 100644 --- a/Tiobon.Core/Tiobon.Core.Model.xml +++ b/Tiobon.Core/Tiobon.Core.Model.xml @@ -23052,6 +23052,51 @@ 附件 + + + 人力需求维护ID + + + + + 部门 + + + + + 岗位 + + + + + 需求人数 + + + + + 已推荐人数 + + + + + 已面试人数 + + + + + 已录用人数 + + + + + 可约时间 + + + + + 附件 + + 员工ID diff --git a/Tiobon.Core/Tiobon.Core.xml b/Tiobon.Core/Tiobon.Core.xml index 681348e5..d3edad09 100644 --- a/Tiobon.Core/Tiobon.Core.xml +++ b/Tiobon.Core/Tiobon.Core.xml @@ -1456,6 +1456,13 @@ 状态 + + + ESS端查询面试记录 + + 简历ID + + 教育背景(Controller)