diff --git a/Tiobon.Core.Api/Controllers/ReportController.cs b/Tiobon.Core.Api/Controllers/ReportController.cs index 7d2134ff..000a8a6f 100644 --- a/Tiobon.Core.Api/Controllers/ReportController.cs +++ b/Tiobon.Core.Api/Controllers/ReportController.cs @@ -46,6 +46,16 @@ public class ReportController : BaseControllerlangId /// [HttpPost("QueryESSInterviewPassRate/{langId}")] - public async Task> QueryESSInterviewPassRate(int langId) => await _service.QueryESSInterviewPassRate(langId); + public async Task> QueryESSInterviewPassRate(int langId) => await _service.QueryInterviewPassRate(langId, App.User.StaffId); + #endregion + + #region HR推荐-简历筛选通过率 + /// + /// HR推荐-简历筛选通过率 + /// + /// langId + /// + [HttpPost("QueryInterviewPassRate/{langId}")] + public async Task> QueryInterviewPassRate(int langId) => await _service.QueryInterviewPassRate(langId); #endregion } \ No newline at end of file diff --git a/Tiobon.Core.Api/Tiobon.Core.xml b/Tiobon.Core.Api/Tiobon.Core.xml index 826e4ff8..0b2072c7 100644 --- a/Tiobon.Core.Api/Tiobon.Core.xml +++ b/Tiobon.Core.Api/Tiobon.Core.xml @@ -604,6 +604,13 @@ langId + + + HR推荐-简历筛选通过率 + + langId + + 分页获取 diff --git a/Tiobon.Core.IServices/IReportServices.cs b/Tiobon.Core.IServices/IReportServices.cs index eef9fafd..672054f4 100644 --- a/Tiobon.Core.IServices/IReportServices.cs +++ b/Tiobon.Core.IServices/IReportServices.cs @@ -14,5 +14,5 @@ public interface IReportServices : IBaseServices> QueryESSResumeScreenPassRate(int langId = 1); - Task> QueryESSInterviewPassRate(int langId = 1); + Task> QueryInterviewPassRate(int langId = 1, int? staffId = null); } diff --git a/Tiobon.Core.Services/ReportServices.cs b/Tiobon.Core.Services/ReportServices.cs index 487bd3ef..7aa3c6cd 100644 --- a/Tiobon.Core.Services/ReportServices.cs +++ b/Tiobon.Core.Services/ReportServices.cs @@ -133,13 +133,13 @@ public partial class ReportServices : BaseServices - /// 面试官-面试通过率:面试官面试通过人数 / 已面试人数 × 100% + /// 面试官/HR推荐 - 面试通过率:面试官面试通过人数 / 已面试人数 × 100% /// /// /// - public async Task> QueryESSInterviewPassRate(int langId = 1) + public async Task> QueryInterviewPassRate(int langId = 1, int? staffId = null) { dynamic data = new ExpandoObject(); @@ -157,7 +157,8 @@ public partial class ReportServices : BaseServices() - .Where(x => x.StaffId == App.User.StaffId && x.CreateTime >= startDate && x.CreateTime < endDate) + .WhereIF(staffId != null, x => x.StaffId == staffId) + .Where(x => x.CreateTime >= startDate && x.CreateTime < endDate) .Select(x => x.OrderId) .Distinct() .ToListAsync(); @@ -215,5 +216,5 @@ public partial class ReportServices : BaseServices.OprateSuccess("获取成功", data); } - #endregion + #endregion }