@ -1875,7 +1875,7 @@ END";
record . InterviewAddress = body . InterviewAddress ;
} ) ;
await _ ghrh_InterviewRecordServices . Update ( records , [ "InterviewTime" , "InterviewBeginTime" , "InterviewEndTime" , "Status" , "UpdateTime" , "UpdateBy" ] ) ;
await _ ghrh_InterviewRecordServices . Update ( records , [ "InterviewTime" , "InterviewBeginTime" , "InterviewEndTime" , "Status" , "InterviewStepName" , "RemarkSz" , "InterviewAddress" , " UpdateTime" , "UpdateBy" ] ) ;
await _ ghrh_InterviewOrderServices . Update ( order , [ "InterviewStepName" , "UpdateTime" , "UpdateBy" ] ) ;
await LogRecord ( order . Id , $"安排面试,面试时间:{body.Time},面试地点:{body.InterviewAddress},面试备注:{body.Remark ?? " 无 "}" , id , records [ 0 ] . Id , "ScheduleInterview" , true ) ;
@ -2234,7 +2234,7 @@ END";
if ( order ! = null )
{
await UpdateInterviewOrderStatus ( order , DIC_INTERVIEW_ORDER_STATUS . HasSendOffer ) ;
await UpdateInterviewRecordStatus ( order , DIC_INTERVIEW_ORDER_STATUS . HasSendOffer ) ;
//await UpdateInterviewRecordStatus(order, DIC_INTERVIEW_ORDER_STATUS.HasSendOffer) ;
await _ ghrh_InterviewLogServices . Add ( new InsertGhrh_InterviewLogInput ( )
{
@ -2441,7 +2441,7 @@ END";
await Update ( entity , [ "Status" ] ) ;
await _ ghrh_InterviewOrderServices . Update ( order , [ "Status" ] ) ;
await _ ghrh_InterviewRecordServices . Update ( records , [ "Status" ] ) ;
//await _ghrh_InterviewRecordServices.Update(records, ["Status"]) ;
await LogRecord ( order . Id , isOffer = = true ? "标记为已报到!" : "标记为未报到!" , id , null , "CheckIn" ) ;
}
else
@ -2552,7 +2552,7 @@ END";
{
await UpdateInterviewOrderStatus ( order , DIC_INTERVIEW_ORDER_STATUS . WaitSendOffer ) ;
await UpdateInterviewRecordStatus ( order , DIC_INTERVIEW_ORDER_STATUS . WaitSendOffer ) ;
//await UpdateInterviewRecordStatus(order, DIC_INTERVIEW_ORDER_STATUS.WaitSendOffer) ;
await LogRecord ( order . Id , "转入待发Offer!" , id , null , "TransferWaitSendOffer" ) ;
}
}
@ -2661,13 +2661,16 @@ END";
C . CancelReason ,
CONVERT
( BIT , CASE B . [ Round ] WHEN C . [ Round ] THEN ' true ' ELSE ' false ' END ) AS IsAllowAssess ,
ISNULL ( A . UpdateTime , A . CreateTime ) CreateTime1
ISNULL ( A . UpdateTime , A . CreateTime ) CreateTime1 ,
C . IsPrimary
FROM Ghrh_Resume A
JOIN Ghrh_InterviewOrder B ON A . ID = B . ResumeId
JOIN Ghrh_InterviewRecord C
ON B . ID = C . OrderId
AND B . [ Round ] = C . [ Round ]
WHERE A . IsEnable = 1 AND C . IsEnable = 1 AND C . Status = A . Status AND B . IsEnable = 1 ";
WHERE A . IsEnable = 1 AND C . IsEnable = 1
- - AND C . Status = A . Status AND B . IsEnable = 1
";
if ( string . IsNullOrWhiteSpace ( filter . orderBy ) )
filter . orderBy = "CreateTime1 ASC" ;
@ -2703,11 +2706,14 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status AND B.IsEnable =
break ;
case "WaitInterview" :
if ( jsonParam . columnValue . ObjToInt ( ) = = 1 )
sql + = $" AND C .Status = '{DIC_INTERVIEW_ORDER_STATUS.WaitInterview}'" ;
sql + = $" AND B .Status = '{DIC_INTERVIEW_ORDER_STATUS.WaitInterview}'" ;
break ;
case "HasInterview" :
if ( jsonParam . columnValue . ObjToInt ( ) = = 1 )
sql + = $" AND (C.Status = '{DIC_INTERVIEW_ORDER_STATUS.HasInterview}' OR C.Status = '{DIC_INTERVIEW_ORDER_STATUS.InterviewFail}')" ;
{
sql + = $" AND (B.Status = '{DIC_INTERVIEW_ORDER_STATUS.HasInterview}' OR B.Status = '{DIC_INTERVIEW_ORDER_STATUS.InterviewFail}')" ;
sql + = $" AND (C.Status = '{DIC_INTERVIEW_ORDER_STATUS.WaitInterview}' OR B.Status = '{DIC_INTERVIEW_ORDER_STATUS.HasInterview}' OR B.Status = '{DIC_INTERVIEW_ORDER_STATUS.InterviewFail}')" ;
}
break ;
case "WaitSendOffer" :
if ( jsonParam . columnValue . ObjToInt ( ) = = 1 )
@ -3517,12 +3523,18 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status AND B.IsEnable =
if ( records [ j ] . Round = = order . Round & & assessConfigId . ObjToString ( ) = = "IsPass" )
{
if ( assessContent = = "1" )
{
isPass = true ;
records [ j ] . IsPass = true ;
}
}
if ( records [ j ] . Round = = order . Round & & assessConfigId . ObjToString ( ) = = "EvaluateContent" )
{
evaluateContent = assessContent ;
records [ j ] . InterviewResult = isPass = = records [ j ] . IsPass = = false ? "面试不通过" : "面试通过" ;
records [ j ] . InterviewResultRemark = evaluateContent ;
}
records [ j ] . AssessTime = DateTime . Now ;
await _ ghrh_InterviewAssessDetailServices . Add ( new InsertGhrh_InterviewAssessDetailInput ( )
{
InterviewAssessId = interviewAssessId ,
@ -3555,22 +3567,17 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status AND B.IsEnable =
if ( source = = "ess" )
{
var record = await _ ghrh_InterviewRecordServices . QuerySingle ( x = > x . Round = = order . Round & & x . OrderId = = order . Id & & x . StaffId = = GetStaffId ( ) ) ;
record . InterviewResult = InterviewResult ;
record . InterviewResultRemark = evaluateContent ;
record . IsPass = isPass ;
record . AssessTime = DateTime . Now ;
record . Status = Status ;
await _ ghrh_InterviewRecordServices . Update ( record , [ "AssessTime" , "Status" , "IsPass" , "InterviewResult" , "InterviewResultRemark" , "UpdateTime" , "UpdateBy" ] ) ;
var record = records . Where ( x = > x . Round = = order . Round & & x . OrderId = = order . Id & & x . StaffId = = GetStaffId ( ) ) . FirstOrDefault ( ) ;
if ( record ! = null )
{
record . Status = Status ;
await _ ghrh_InterviewRecordServices . Update ( record , [ "AssessTime" , "Status" , "IsPass" , "InterviewResult" , "InterviewResultRemark" , "UpdateTime" , "UpdateBy" ] ) ;
}
}
else
{
records . ForEach ( record = >
{
record . InterviewResult = InterviewResult ;
record . InterviewResultRemark = evaluateContent ;
record . IsPass = isPass ;
record . AssessTime = DateTime . Now ;
record . Status = Status ;
} ) ;
await _ ghrh_InterviewRecordServices . Update ( records , [ "AssessTime" , "Status" , "IsPass" , "InterviewResult" , "InterviewResultRemark" , "UpdateTime" , "UpdateBy" ] ) ;