作者 tangxvhui

调整 Status 状态值处理

... ... @@ -164,7 +164,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
evalutionHrbp.HrCheckResult = domain.EvaluationCheckCompleted
err = evaluationRepo.Save(evalutionHrbp)
if err != nil {
... ... @@ -185,7 +185,7 @@ func (srv *SummaryEvaluationService) EditEvaluationByHrCheck(param *command.Edit
if err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
val.Status = domain.EvaluationCompleted
val.HrCheckResult = domain.EvaluationCheckCompleted
err = evaluationRepo.Save(val)
if err != nil {
... ... @@ -206,7 +206,7 @@ func (srv *SummaryEvaluationService) EditEvaluationByHrCheck(param *command.Edit
if err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
evaluationSuper.Status = domain.EvaluationCompleted
evaluationSuper.HrCheckResult = domain.EvaluationCheckCompleted
err = evaluationRepo.Save(evaluationSuper)
if err != nil {
... ... @@ -227,7 +227,7 @@ func (srv *SummaryEvaluationService) EditEvaluationByHrCheck(param *command.Edit
if err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
evalutionFinish.Status = domain.EvaluationCompleted
evalutionFinish.HrCheckResult = domain.EvaluationCheckCompleted
err = evaluationRepo.Save(evalutionFinish)
if err != nil {
... ...