|
|
|
@ -2449,6 +2449,16 @@ A.DataType, A.ColumnType, A.IsRequired, A.DataSourceType, A.DataSource, A.DataSo |
|
|
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
#region 处理人力需求单 录用人数 |
|
|
|
|
if (order.RequestId.IsNotEmptyOrNull() ) |
|
|
|
|
{ |
|
|
|
|
var sql = $@"UPDATE Ghrh_HumanRequest
|
|
|
|
|
SET OfferCount = ISNULL (OfferCount, 0) + 1 |
|
|
|
|
WHERE Id = {order.RequestId}";
|
|
|
|
|
await Db.Ado.ExecuteCommandAsync(sql); |
|
|
|
|
} |
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
return ServiceResult.OprateSuccess(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -3742,6 +3752,16 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 |
|
|
|
|
await _ghrh_InterviewRecordServices.Update(records, ["AssessTime", "Status", "IsPass", "InterviewResult", "InterviewResultRemark", "UpdateTime", "UpdateBy"]); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#region 处理人力需求单 面试人数 |
|
|
|
|
if (order.RequestId.IsNotEmptyOrNull() && entity.Status == DIC_INTERVIEW_ORDER_STATUS.WaitInterview) |
|
|
|
|
{ |
|
|
|
|
var sql = $@"UPDATE Ghrh_HumanRequest
|
|
|
|
|
SET InterviewCount = ISNULL (InterviewCount, 0) + 1 |
|
|
|
|
WHERE Id = {order.RequestId}";
|
|
|
|
|
await Db.Ado.ExecuteCommandAsync(sql); |
|
|
|
|
} |
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
if (entity.Status == DIC_INTERVIEW_ORDER_STATUS.WaitInterview) |
|
|
|
|
await UpdateResumeStatus(entity, Status); |
|
|
|
|
|
|
|
|
@ -4987,6 +5007,18 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 |
|
|
|
|
staffId = await Db.Insertable(dict).AS("Ghra_Staff").ExecuteReturnIdentityAsync(); |
|
|
|
|
if (staffId > 0) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
#region 处理人力需求单 报到人数 |
|
|
|
|
var order = await _ghrh_InterviewOrderServices.QuerySingle(x => x.ResumeId == id); |
|
|
|
|
if (order.RequestId.IsNotEmptyOrNull()) |
|
|
|
|
{ |
|
|
|
|
sql = $@"UPDATE Ghrh_HumanRequest
|
|
|
|
|
SET CheckInCount = ISNULL (CheckInCount, 0) + 1 |
|
|
|
|
WHERE Id = {order.RequestId}";
|
|
|
|
|
await Db.Ado.ExecuteCommandAsync(sql); |
|
|
|
|
} |
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
sql = $"update Ghra_Staff set Indate='{inTime}' where StaffID={staffId} and Indate is null"; |
|
|
|
|
if (inTime != null) |
|
|
|
|
await Db.Ado.ExecuteCommandAsync(sql); |
|
|
|
|