作者 郑周

1.超管状态提交上级编辑 跳过 填写项验证

... ... @@ -1222,7 +1222,7 @@ func (srv *SummaryEvaluationService) EditEvaluationSuper(param *command.EditEval
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
// 如果目标员工已经确认考核结果,就不能在进行评估编辑
if len(evaluationList) > 0 && evaluationList[0].Status == domain.EvaluationCompleted {
if len(evaluationList) > 0 && evaluationList[0].CheckResult == domain.EvaluationCheckCompleted {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "用户已经确认该周期的考核结果,不能在编辑!")
}
... ... @@ -1336,7 +1336,7 @@ func (srv *SummaryEvaluationService) EditEvaluationSuperForAdmin(param *command.
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
// 如果目标员工已经确认考核结果,就不能在进行评估编辑
if len(evaluationList) > 0 && evaluationList[0].Status == domain.EvaluationCompleted {
if len(evaluationList) > 0 && evaluationList[0].CheckResult == domain.EvaluationCheckCompleted {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "用户已经确认该周期的考核结果,不能在编辑!")
}
... ...