作者 tangxvhui

Merge branch 'v2.2.0-fix' into test

... ... @@ -166,6 +166,7 @@ func (srv *SummaryEvaluationService) EditEvaluationByHrCheck(param *command.Edit
}
evalutionHrbp.HrCheckResult = domain.EvaluationCheckCompleted
evalutionHrbp.Status = domain.EvaluationCompleted
err = evaluationRepo.Save(evalutionHrbp)
if err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
... ... @@ -206,7 +207,7 @@ func (srv *SummaryEvaluationService) EditEvaluationByHrCheck(param *command.Edit
if err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
evalutionHrbp.Status = domain.EvaluationCompleted
evaluationSuper.HrCheckResult = domain.EvaluationCheckCompleted
err = evaluationRepo.Save(evaluationSuper)
if err != nil {
... ... @@ -227,7 +228,7 @@ func (srv *SummaryEvaluationService) EditEvaluationByHrCheck(param *command.Edit
if err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
evalutionHrbp.Status = domain.EvaluationCompleted
evalutionFinish.HrCheckResult = domain.EvaluationCheckCompleted
err = evaluationRepo.Save(evalutionFinish)
if err != nil {
... ...
UPDATE
summary_evaluation
SET
status = 'completed'
WHERE
hr_check_result = 'completed'
... ...