1. 修复BUG 4096 考核评分结果显示优先级顺序(考核评分 -> 上级评分 -> 360+HR+自评)
正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
@@ -1410,12 +1410,12 @@ func (srv *SummaryEvaluationService) ConfirmScoreEvaluation(param *command.Confi | @@ -1410,12 +1410,12 @@ func (srv *SummaryEvaluationService) ConfirmScoreEvaluation(param *command.Confi | ||
1410 | } | 1410 | } |
1411 | 1411 | ||
1412 | if super != nil { | 1412 | if super != nil { |
1413 | - _, itemValues, err = itemValueRepo.Find(map[string]interface{}{"summaryEvaluationId": super.Id}) // 获取已填写的评估内容 | 1413 | + _, superValues, err := itemValueRepo.Find(map[string]interface{}{"summaryEvaluationId": super.Id}) // 获取已填写的评估内容 |
1414 | if err != nil { | 1414 | if err != nil { |
1415 | return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | 1415 | return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) |
1416 | } | 1416 | } |
1417 | // 更新填写值 | 1417 | // 更新填写值 |
1418 | - itemValues, err = srv.updateItemValuePriority(result, itemList, itemValues, true) | 1418 | + itemValues, err = srv.updateItemValuePriority(result, itemList, superValues, true) |
1419 | if err != nil { | 1419 | if err != nil { |
1420 | return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | 1420 | return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) |
1421 | } | 1421 | } |
@@ -1430,13 +1430,13 @@ func (srv *SummaryEvaluationService) ConfirmScoreEvaluation(param *command.Confi | @@ -1430,13 +1430,13 @@ func (srv *SummaryEvaluationService) ConfirmScoreEvaluation(param *command.Confi | ||
1430 | } | 1430 | } |
1431 | if len(evaluationIds) > 0 { | 1431 | if len(evaluationIds) > 0 { |
1432 | // 已填写的评估内容 | 1432 | // 已填写的评估内容 |
1433 | - _, itemValues, err = itemValueRepo.Find(map[string]interface{}{"summaryEvaluationIdList": evaluationIds}) | 1433 | + _, otherValues, err := itemValueRepo.Find(map[string]interface{}{"summaryEvaluationIdList": evaluationIds}) |
1434 | if err != nil { | 1434 | if err != nil { |
1435 | return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | 1435 | return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) |
1436 | } | 1436 | } |
1437 | 1437 | ||
1438 | // 更新填写值 | 1438 | // 更新填写值 |
1439 | - itemValues, err = srv.updateItemValuePriority(result, itemList, itemValues, false) | 1439 | + itemValues, err = srv.updateItemValuePriority(result, itemList, otherValues, false) |
1440 | if err != nil { | 1440 | if err != nil { |
1441 | return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | 1441 | return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) |
1442 | } | 1442 | } |
-
请 注册 或 登录 后发表评论