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