正在显示
2 个修改的文件
包含
16 行增加
和
0 行删除
@@ -81,6 +81,14 @@ func (srv *SummaryEvaluationService) EditEvaluation360(param *command.EditEvalua | @@ -81,6 +81,14 @@ func (srv *SummaryEvaluationService) EditEvaluation360(param *command.EditEvalua | ||
81 | if !param.IsTemporary { | 81 | if !param.IsTemporary { |
82 | //变更评估状态为已填写 | 82 | //变更评估状态为已填写 |
83 | summaryEvaluation.Status = domain.EvaluationCompleted | 83 | summaryEvaluation.Status = domain.EvaluationCompleted |
84 | + //删除旧的填写值,使用新的填写内容 | ||
85 | + err = itemValueRepo.RemoveBySummaryEvaluationId(summaryEvaluation.Id) | ||
86 | + if err != nil { | ||
87 | + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | ||
88 | + } | ||
89 | + for _, val := range itemValueList { | ||
90 | + val.Id = 0 | ||
91 | + } | ||
84 | } | 92 | } |
85 | 93 | ||
86 | //保存填写值 | 94 | //保存填写值 |
@@ -97,6 +97,14 @@ func (srv *SummaryEvaluationService) EditEvaluationHRBP(param *command.EditEvalu | @@ -97,6 +97,14 @@ func (srv *SummaryEvaluationService) EditEvaluationHRBP(param *command.EditEvalu | ||
97 | if !param.IsTemporary { | 97 | if !param.IsTemporary { |
98 | //变更评估状态为已填写 | 98 | //变更评估状态为已填写 |
99 | summaryEvaluation.Status = domain.EvaluationCompleted | 99 | summaryEvaluation.Status = domain.EvaluationCompleted |
100 | + //删除旧的填写值,使用新的填写内容 | ||
101 | + err = itemValueRepo.RemoveBySummaryEvaluationId(summaryEvaluation.Id) | ||
102 | + if err != nil { | ||
103 | + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | ||
104 | + } | ||
105 | + for _, val := range itemValueList { | ||
106 | + val.Id = 0 | ||
107 | + } | ||
100 | } | 108 | } |
101 | //保存填写值 | 109 | //保存填写值 |
102 | for _, v := range itemValueList { | 110 | for _, v := range itemValueList { |
-
请 注册 或 登录 后发表评论