|
@@ -107,7 +107,9 @@ func (srv *SummaryEvaluationService) buildSummaryFinishValue(transactionContext |
|
@@ -107,7 +107,9 @@ func (srv *SummaryEvaluationService) buildSummaryFinishValue(transactionContext |
107
|
}
|
107
|
}
|
108
|
|
108
|
|
109
|
_, itemUsed, err := evaluationItemRepo.Find(map[string]interface{}{"evaluationProjectId": evaluationFinisih.EvaluationProjectId, "nodeType": domain.LinkNodeSelfAssessment})
|
109
|
_, itemUsed, err := evaluationItemRepo.Find(map[string]interface{}{"evaluationProjectId": evaluationFinisih.EvaluationProjectId, "nodeType": domain.LinkNodeSelfAssessment})
|
110
|
-
|
110
|
+ if err != nil {
|
|
|
111
|
+ return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
|
|
|
112
|
+ }
|
111
|
var evaluationFinishValue []*domain.SummaryEvaluationValue
|
113
|
var evaluationFinishValue []*domain.SummaryEvaluationValue
|
112
|
var evaluationData *domain.SummaryEvaluation
|
114
|
var evaluationData *domain.SummaryEvaluation
|
113
|
//尝试获取目标人员的上级评估
|
115
|
//尝试获取目标人员的上级评估
|
|
@@ -142,5 +144,25 @@ func (srv *SummaryEvaluationService) buildSummaryFinishValue(transactionContext |
|
@@ -142,5 +144,25 @@ func (srv *SummaryEvaluationService) buildSummaryFinishValue(transactionContext |
142
|
return evaluationFinishValue, nil
|
144
|
return evaluationFinishValue, nil
|
143
|
}
|
145
|
}
|
144
|
|
146
|
|
145
|
- return nil, nil
|
147
|
+ //使用360评估、人资评估、构建考核结果的评估项内容
|
|
|
148
|
+ var itemValueBack []*domain.SummaryEvaluationValue
|
|
|
149
|
+ var summaryEvaluationId []int
|
|
|
150
|
+ for _, val := range evaluationList {
|
|
|
151
|
+ if val.Types == domain.Evaluation360 || val.Types == domain.EvaluationHrbp || val.Types == domain.EvaluationSelf {
|
|
|
152
|
+ summaryEvaluationId = append(summaryEvaluationId, val.Id)
|
|
|
153
|
+ }
|
|
|
154
|
+ }
|
|
|
155
|
+ if len(summaryEvaluationId) > 0 {
|
|
|
156
|
+ _, itemValueBack, err = evaluationValueRepo.Find(map[string]interface{}{"summaryEvaluationIdList": summaryEvaluationId})
|
|
|
157
|
+ if err != nil {
|
|
|
158
|
+ return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
|
|
|
159
|
+ }
|
|
|
160
|
+ }
|
|
|
161
|
+ _ = itemValueBack
|
|
|
162
|
+ //使用
|
|
|
163
|
+ // for _, val := range itemValueBack {
|
|
|
164
|
+
|
|
|
165
|
+ // }
|
|
|
166
|
+
|
|
|
167
|
+ return evaluationFinishValue, nil
|
146
|
} |
168
|
} |