|
|
|
@ -1,4 +1,5 @@ |
|
|
|
|
using MySqlX.XDevAPI.Common; |
|
|
|
|
using NPOI.XWPF.UserModel; |
|
|
|
|
using Tiobon.Core.Common.DB.Dapper.Extensions; |
|
|
|
|
using static Tiobon.Core.Model.Consts; |
|
|
|
|
|
|
|
|
@ -1375,7 +1376,7 @@ END"; |
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
#region 安排面试 |
|
|
|
|
public async Task<ServiceResult> ScheduleInterview(long id, string time) |
|
|
|
|
public async Task<ServiceResult> ScheduleInterview(long id, ResumeScheduleInterviewForm body) |
|
|
|
|
{ |
|
|
|
|
var entity = await base.QueryById(id); |
|
|
|
|
if (entity == null) |
|
|
|
@ -1384,9 +1385,9 @@ END"; |
|
|
|
|
if (entity.Status != DIC_INTERVIEW_ORDER_STATUS.WaitAppointment) |
|
|
|
|
return ServiceResult.OprateFailed("【待预约】状态下才能安排面试!"); |
|
|
|
|
|
|
|
|
|
if (time.IndexOf("~") < 0) |
|
|
|
|
throw new Exception($"传入时间【{time}】无效,请检查格式!"); |
|
|
|
|
var array = time.Split('~'); |
|
|
|
|
if (body.Time.IndexOf("~") < 0) |
|
|
|
|
throw new Exception($"传入时间【{body.Time}】无效,请检查格式!"); |
|
|
|
|
var array = body.Time.Split('~'); |
|
|
|
|
try |
|
|
|
|
{ |
|
|
|
|
Convert.ToDateTime(array[0]); |
|
|
|
@ -1394,7 +1395,7 @@ END"; |
|
|
|
|
} |
|
|
|
|
catch (Exception) |
|
|
|
|
{ |
|
|
|
|
throw new Exception($"传入时间【{time}】无效,请检查格式!"); |
|
|
|
|
throw new Exception($"传入时间【{body.Time}】无效,请检查格式!"); |
|
|
|
|
} |
|
|
|
|
var order = await _ghrh_InterviewOrderServices.QuerySingle(x => x.ResumeId == id); |
|
|
|
|
if (order != null) |
|
|
|
@ -1403,10 +1404,12 @@ END"; |
|
|
|
|
|
|
|
|
|
records.ForEach(record => |
|
|
|
|
{ |
|
|
|
|
record.InterviewTime = time; |
|
|
|
|
record.InterviewTime = body.Time; |
|
|
|
|
record.InterviewBeginTime = Convert.ToDateTime(array[0]); |
|
|
|
|
record.InterviewEndTime = Convert.ToDateTime(array[1]); |
|
|
|
|
record.Status = DIC_INTERVIEW_ORDER_STATUS.WaitInterview; |
|
|
|
|
record.RemarkSz = body.Remark; |
|
|
|
|
record.InterviewAddress = body.InterviewAddress; |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
await _ghrh_InterviewRecordServices.Update(records, ["InterviewTime", "InterviewBeginTime", "InterviewEndTime", "Status"]); |
|
|
|
@ -1415,7 +1418,7 @@ END"; |
|
|
|
|
await _ghrh_InterviewLogServices.Add(new InsertGhrh_InterviewLogInput() |
|
|
|
|
{ |
|
|
|
|
OrderId = order.Id, |
|
|
|
|
RemarkSz = $"用户【{usser?.UserName ?? App.User.ID.ToString()}】安排面试,面试时间:{time}!" |
|
|
|
|
RemarkSz = $"用户【{usser?.UserName ?? App.User.ID.ToString()}】安排面试,面试时间:{body.Time}!" |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
entity.Status = DIC_INTERVIEW_ORDER_STATUS.WaitInterview; |
|
|
|
|