...
|
...
|
@@ -50,6 +50,16 @@ func (srv *SummaryEvaluationService) EditEvaluationByHrCheck(param *command.Edit |
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
//检查 是否已进行确认评估
|
|
|
for _, val := range allEvaluationList {
|
|
|
if val.Types != domain.EvaluationFinish {
|
|
|
continue
|
|
|
}
|
|
|
if val.CheckResult == domain.EvaluationCheckCompleted {
|
|
|
return nil, application.ThrowError(application.BUSINESS_ERROR, "人员已经确然成绩,不能再修改评估")
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 评估的所有题目
|
|
|
_, itemUsedList, err := itemUsedRepo.Find(map[string]interface{}{
|
|
|
"evaluationProjectId": evaluationData.EvaluationProjectId,
|
...
|
...
|
|