正在显示
1 个修改的文件
包含
25 行增加
和
16 行删除
@@ -186,7 +186,7 @@ func (srv *SummaryEvaluationService) Evaluation360List(param *command.QueryEvalu | @@ -186,7 +186,7 @@ func (srv *SummaryEvaluationService) Evaluation360List(param *command.QueryEvalu | ||
186 | } | 186 | } |
187 | 187 | ||
188 | // GetEvaluation360 获取360综评详情(我评估目标用户) | 188 | // GetEvaluation360 获取360综评详情(我评估目标用户) |
189 | -func (srv *SummaryEvaluationService) GetEvaluation360(param *command.QueryEvaluation360My) (*adapter.EvaluationInfoAdapter, error) { | 189 | +func (srv *SummaryEvaluationService) GetEvaluation360(param *command.QueryEvaluation360My) (*[]adapter.EvaluationItemAdapter, error) { |
190 | transactionContext, err := factory.ValidateStartTransaction(param) | 190 | transactionContext, err := factory.ValidateStartTransaction(param) |
191 | if err != nil { | 191 | if err != nil { |
192 | return nil, err | 192 | return nil, err |
@@ -229,21 +229,24 @@ func (srv *SummaryEvaluationService) GetEvaluation360(param *command.QueryEvalua | @@ -229,21 +229,24 @@ func (srv *SummaryEvaluationService) GetEvaluation360(param *command.QueryEvalua | ||
229 | } | 229 | } |
230 | 230 | ||
231 | itemValuesAdapter := srv.buildSummaryItemValue(itemList, itemValues) | 231 | itemValuesAdapter := srv.buildSummaryItemValue(itemList, itemValues) |
232 | - result := adapter.EvaluationInfoAdapter{ | ||
233 | - SummaryEvaluationId: sEvaluation.Id, | ||
234 | - CycleId: int(sEvaluation.CycleId), | ||
235 | - CycleName: sEvaluation.CycleName, | ||
236 | - EvaluationProjectId: sEvaluation.EvaluationProjectId, | ||
237 | - EvaluationProjectName: sEvaluation.EvaluationProjectName, | ||
238 | - LinkNodeId: sEvaluation.NodeId, | ||
239 | - BeginTime: sEvaluation.BeginTime.Format("2006-01-02 15:04:05"), | ||
240 | - EndTime: sEvaluation.EndTime.Format("2006-01-02 15:04:05"), | ||
241 | - TargetUserId: sEvaluation.TargetUser.UserId, | ||
242 | - TargetUserName: sEvaluation.TargetUser.UserName, | ||
243 | - Status: string(sEvaluation.Status), | ||
244 | - EvaluationItems: itemValuesAdapter, | ||
245 | - } | ||
246 | - return &result, nil | 232 | + for i := range itemValuesAdapter { // 评估人名称赋值 |
233 | + itemValuesAdapter[i].EvaluatorName = sEvaluation.Executor.UserName | ||
234 | + } | ||
235 | + //result := adapter.EvaluationInfoAdapter{ | ||
236 | + // SummaryEvaluationId: sEvaluation.Id, | ||
237 | + // CycleId: int(sEvaluation.CycleId), | ||
238 | + // CycleName: sEvaluation.CycleName, | ||
239 | + // EvaluationProjectId: sEvaluation.EvaluationProjectId, | ||
240 | + // EvaluationProjectName: sEvaluation.EvaluationProjectName, | ||
241 | + // LinkNodeId: sEvaluation.NodeId, | ||
242 | + // BeginTime: sEvaluation.BeginTime.Format("2006-01-02 15:04:05"), | ||
243 | + // EndTime: sEvaluation.EndTime.Format("2006-01-02 15:04:05"), | ||
244 | + // TargetUserId: sEvaluation.TargetUser.UserId, | ||
245 | + // TargetUserName: sEvaluation.TargetUser.UserName, | ||
246 | + // Status: string(sEvaluation.Status), | ||
247 | + // EvaluationItems: itemValuesAdapter, | ||
248 | + //} | ||
249 | + return &itemValuesAdapter, nil | ||
247 | } | 250 | } |
248 | 251 | ||
249 | // GetEvaluation360All 获取360综评详情-上级综评(所有的评估人,评估内容) | 252 | // GetEvaluation360All 获取360综评详情-上级综评(所有的评估人,评估内容) |
@@ -645,6 +648,12 @@ func (srv *SummaryEvaluationService) GetEvaluationHRBP(param *command.QueryEvalu | @@ -645,6 +648,12 @@ func (srv *SummaryEvaluationService) GetEvaluationHRBP(param *command.QueryEvalu | ||
645 | } | 648 | } |
646 | 649 | ||
647 | itemValuesAdapter := srv.buildSummaryItemValue(itemList, itemValues) | 650 | itemValuesAdapter := srv.buildSummaryItemValue(itemList, itemValues) |
651 | + for i := range itemValuesAdapter { // 评估人名称赋值 | ||
652 | + if executor, ok := executorMap[itemValuesAdapter[i].EvaluatorId]; ok { | ||
653 | + itemValuesAdapter[i].EvaluatorName = executor.UserName | ||
654 | + } | ||
655 | + } | ||
656 | + | ||
648 | //result := adapter.EvaluationInfoAdapter{ | 657 | //result := adapter.EvaluationInfoAdapter{ |
649 | // SummaryEvaluationId: sEvaluation.Id, | 658 | // SummaryEvaluationId: sEvaluation.Id, |
650 | // CycleId: int(sEvaluation.CycleId), | 659 | // CycleId: int(sEvaluation.CycleId), |
-
请 注册 或 登录 后发表评论