...
|
...
|
@@ -104,7 +104,7 @@ func (srv *SummaryEvaluationService) buildSummaryFinishValue(transactionContext |
|
|
[]*domain.SummaryEvaluationValue, error) {
|
|
|
evaluationRepo := factory.CreateSummaryEvaluationRepository(map[string]interface{}{"transactionContext": transactionContext})
|
|
|
evaluationValueRepo := factory.CreateSummaryEvaluationValueRepository(map[string]interface{}{"transactionContext": transactionContext})
|
|
|
|
|
|
evaluationItemRepo := factory.CreateEvaluationItemUsedRepository(map[string]interface{}{"transactionContext": transactionContext})
|
|
|
//尝试获取目标人员的所有评估
|
|
|
_, evaluationList, err := evaluationRepo.Find(map[string]interface{}{
|
|
|
"targetUserId": evaluationFinisih.TargetUser.UserId,
|
...
|
...
|
@@ -113,12 +113,16 @@ func (srv *SummaryEvaluationService) buildSummaryFinishValue(transactionContext |
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
|
|
|
}
|
|
|
|
|
|
_, itemUsed, err := evaluationItemRepo.Find(map[string]interface{}{"evaluationProjectId": evaluationFinisih.EvaluationProjectId, "nodeType": domain.LinkNodeSelfAssessment})
|
|
|
|
|
|
var evaluationFinishValue []*domain.SummaryEvaluationValue
|
|
|
var evaluationData *domain.SummaryEvaluation
|
|
|
//尝试获取目标人员的上级评估
|
|
|
for _, val := range evaluationList {
|
|
|
evaluationData = val
|
|
|
}
|
|
|
|
|
|
if evaluationData != nil {
|
|
|
|
|
|
return evaluationFinishValue, nil
|
...
|
...
|
|