正在显示
1 个修改的文件
包含
2 行增加
和
8 行删除
@@ -660,12 +660,8 @@ func (srv *SummaryEvaluationService) GetEvaluationHRBPComplete(param *command.Qu | @@ -660,12 +660,8 @@ func (srv *SummaryEvaluationService) GetEvaluationHRBPComplete(param *command.Qu | ||
660 | return &list, nil | 660 | return &list, nil |
661 | } | 661 | } |
662 | 662 | ||
663 | - executorMap := map[int]domain.StaffDesc{} // 执行人 | ||
664 | - evaluationIds := make([]int, 0) // 评估周期ID | 663 | + evaluationIds := make([]int, 0) // 评估周期ID |
665 | for i := range evaluations { | 664 | for i := range evaluations { |
666 | - executor := evaluations[i].Executor | ||
667 | - executorMap[executor.UserId] = executor | ||
668 | - | ||
669 | evaluationIds = append(evaluationIds, evaluations[i].Id) | 665 | evaluationIds = append(evaluationIds, evaluations[i].Id) |
670 | } | 666 | } |
671 | // 得到项目ID | 667 | // 得到项目ID |
@@ -696,9 +692,7 @@ func (srv *SummaryEvaluationService) GetEvaluationHRBPComplete(param *command.Qu | @@ -696,9 +692,7 @@ func (srv *SummaryEvaluationService) GetEvaluationHRBPComplete(param *command.Qu | ||
696 | 692 | ||
697 | itemValuesAdapter := srv.buildSummaryItemValue(itemList, itemValues) | 693 | itemValuesAdapter := srv.buildSummaryItemValue(itemList, itemValues) |
698 | for i := range itemValuesAdapter { // 评估人名称赋值 | 694 | for i := range itemValuesAdapter { // 评估人名称赋值 |
699 | - if executor, ok := executorMap[itemValuesAdapter[i].EvaluatorId]; ok { | ||
700 | - itemValuesAdapter[i].EvaluatorName = executor.UserName | ||
701 | - } | 695 | + itemValuesAdapter[i].EvaluatorName = evaluations[0].Executor.UserName |
702 | } | 696 | } |
703 | return &itemValuesAdapter, nil | 697 | return &itemValuesAdapter, nil |
704 | } | 698 | } |
-
请 注册 或 登录 后发表评论