|
|
|
@ -133,13 +133,13 @@ public partial class ReportServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, |
|
|
|
|
} |
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
#region 面试官-面试通过率 |
|
|
|
|
#region 面试官/HR推荐 - 面试通过率 |
|
|
|
|
/// <summary> |
|
|
|
|
/// 面试官-面试通过率:面试官面试通过人数 / 已面试人数 × 100% |
|
|
|
|
/// 面试官/HR推荐 - 面试通过率:面试官面试通过人数 / 已面试人数 × 100% |
|
|
|
|
/// </summary> |
|
|
|
|
/// <param name="langId"></param> |
|
|
|
|
/// <returns></returns> |
|
|
|
|
public async Task<ServiceResult<dynamic>> QueryESSInterviewPassRate(int langId = 1) |
|
|
|
|
public async Task<ServiceResult<dynamic>> QueryInterviewPassRate(int langId = 1, int? staffId = null) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
dynamic data = new ExpandoObject(); |
|
|
|
@ -157,7 +157,8 @@ public partial class ReportServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, |
|
|
|
|
endDate = new DateTime(endDate.Year, endDate.Month, 1); |
|
|
|
|
|
|
|
|
|
var orderIds = await Db.Queryable<Ghrh_InterviewRecord>() |
|
|
|
|
.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<Ghrh_Resume, Ghrh_ResumeDto, |
|
|
|
|
data.series = series; |
|
|
|
|
return ServiceResult<dynamic>.OprateSuccess("获取成功", data); |
|
|
|
|
} |
|
|
|
|
#endregion |
|
|
|
|
#endregion |
|
|
|
|
} |
|
|
|
|