|
|
|
@ -2336,7 +2336,7 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status"; |
|
|
|
|
public async Task<ServiceResult<ResumeScheduleInterviewResult>> QueryScheduleInterviewForm(long id) |
|
|
|
|
{ |
|
|
|
|
var result = new ResumeScheduleInterviewResult(); |
|
|
|
|
var entity = base.QueryById(id); |
|
|
|
|
var entity = await base.QueryById(id); |
|
|
|
|
var order = await _ghrh_InterviewOrderServices.QuerySingle(x => x.ResumeId == id); |
|
|
|
|
var records = await _ghrh_InterviewRecordServices.Query(x => x.Round == order.Round && x.OrderId == order.Id); |
|
|
|
|
|
|
|
|
@ -2357,6 +2357,7 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status"; |
|
|
|
|
result.TitleName = order.HireTitleName; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result.Times = new List<string>(); |
|
|
|
|
result.Staffs = new(); |
|
|
|
|
if (records != null && records.Any()) |
|
|
|
@ -2364,6 +2365,13 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status"; |
|
|
|
|
var record = records.Where(x => x.PlanInterviewTime1 != null).FirstOrDefault(); |
|
|
|
|
if (record != null) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
#region 返回上轮面试结果 |
|
|
|
|
result.LastInterviewName = (await Db.Queryable<Ghra_Staff>().Where(x => x.StaffID == record.StaffId).FirstAsync())?.StaffName; |
|
|
|
|
result.LastInterviewResult = record.InterviewResult; |
|
|
|
|
result.LastInterviewContent = record.InterviewResultRemark; |
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
if (record.PlanInterviewTime1.IsNotEmptyOrNull()) |
|
|
|
|
result.Times.Add(record.PlanInterviewTime1); |
|
|
|
|
|
|
|
|
|