作者 tangxvhui

人资稽查 填写时检查时间

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