作者 tangxvhui

人资稽查 填写时检查时间

@@ -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,
@@ -40,7 +40,7 @@ func (srv *SummaryEvaluationService) ListEvaluationShow1(param command.QueryEval @@ -40,7 +40,7 @@ func (srv *SummaryEvaluationService) ListEvaluationShow1(param command.QueryEval
40 condition := map[string]interface{}{ 40 condition := map[string]interface{}{
41 "companyId": param.CompanyId, 41 "companyId": param.CompanyId,
42 "cycleId": param.CycleId, 42 "cycleId": param.CycleId,
43 - "types": domain.EvaluationSelf, 43 + "types": domain.EvaluationFinish,
44 "limit": limit, 44 "limit": limit,
45 "offset": offset, 45 "offset": offset,
46 } 46 }