...
|
...
|
@@ -660,12 +660,8 @@ func (srv *SummaryEvaluationService) GetEvaluationHRBPComplete(param *command.Qu |
|
|
return &list, nil
|
|
|
}
|
|
|
|
|
|
executorMap := map[int]domain.StaffDesc{} // 执行人
|
|
|
evaluationIds := make([]int, 0) // 评估周期ID
|
|
|
evaluationIds := make([]int, 0) // 评估周期ID
|
|
|
for i := range evaluations {
|
|
|
executor := evaluations[i].Executor
|
|
|
executorMap[executor.UserId] = executor
|
|
|
|
|
|
evaluationIds = append(evaluationIds, evaluations[i].Id)
|
|
|
}
|
|
|
// 得到项目ID
|
...
|
...
|
@@ -696,9 +692,7 @@ func (srv *SummaryEvaluationService) GetEvaluationHRBPComplete(param *command.Qu |
|
|
|
|
|
itemValuesAdapter := srv.buildSummaryItemValue(itemList, itemValues)
|
|
|
for i := range itemValuesAdapter { // 评估人名称赋值
|
|
|
if executor, ok := executorMap[itemValuesAdapter[i].EvaluatorId]; ok {
|
|
|
itemValuesAdapter[i].EvaluatorName = executor.UserName
|
|
|
}
|
|
|
itemValuesAdapter[i].EvaluatorName = evaluations[0].Executor.UserName
|
|
|
}
|
|
|
return &itemValuesAdapter, nil
|
|
|
}
|
...
|
...
|
|