作者 tangxvhui

修复bug

... ... @@ -183,7 +183,7 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluation360Hrbp(
return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
noSuper := (len(evaluationList) == 0)
//noSuper := (len(evaluationList) == 0)
_, evaluationFinishList, err := evaluationRepo.Find(map[string]interface{}{
"targetUserId": evaluationData.TargetUser.UserId,
... ... @@ -196,13 +196,13 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluation360Hrbp(
}
if !allCompleted {
//仅同步评估内容到考核结果
if noSuper && len(evaluationFinishList) > 0 {
//不存在上级评估
err = srv.syncEvaluationFinishValue(transactionContext, evaluationFinishList[0], evaluationValue)
if err != nil {
return err
}
}
// if noSuper && len(evaluationFinishList) > 0 {
// //不存在上级评估
// err = srv.syncEvaluationFinishValue(transactionContext, evaluationFinishList[0], evaluationValue)
// if err != nil {
// return err
// }
// }
return nil
}
... ...