|
...
|
...
|
@@ -192,6 +192,10 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluationSelf( |
|
|
|
evaluationFinish.BeginTime = nowTime
|
|
|
|
}
|
|
|
|
evaluationFinish.Status = domain.EvaluationCompleted
|
|
|
|
err = evaluationRepo.Save(evaluationFinish)
|
|
|
|
if err != nil {
|
|
|
|
return application.ThrowError(application.INTERNAL_SERVER_ERROR, "保存考核结果,"+err.Error())
|
|
|
|
}
|
|
|
|
//添加确认绩效成绩提醒短信提醒
|
|
|
|
err = notify.AddNotifyConfirmEvaluationScore(evaluationFinish)
|
|
|
|
if err != nil {
|
|
...
|
...
|
@@ -199,8 +203,8 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluationSelf( |
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if noSuper && evaluationFinish != nil {
|
|
|
|
_ = noSuper
|
|
|
|
// if noSuper && evaluationFinish != nil {
|
|
|
|
//没有上级评估 同步数据到考核结果
|
|
|
|
|
|
|
|
// itemUsedRepo := factory.CreateEvaluationItemUsedRepository(map[string]interface{}{
|
|
...
|
...
|
@@ -232,12 +236,12 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluationSelf( |
|
|
|
// return err
|
|
|
|
// }
|
|
|
|
|
|
|
|
} else if len(targetEvaluation) == 0 && evaluationFinish != nil {
|
|
|
|
err = evaluationRepo.Save(evaluationFinish)
|
|
|
|
if err != nil {
|
|
|
|
return application.ThrowError(application.INTERNAL_SERVER_ERROR, "保存考核结果,"+err.Error())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// } else if len(targetEvaluation) == 0 && evaluationFinish != nil {
|
|
|
|
// err = evaluationRepo.Save(evaluationFinish)
|
|
|
|
// if err != nil {
|
|
|
|
// return application.ThrowError(application.INTERNAL_SERVER_ERROR, "保存考核结果,"+err.Error())
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
return nil
|
|
|
|
} |
...
|
...
|
|