|
@@ -540,9 +540,8 @@ func (srv *SummaryEvaluationService) GetTargetUserCycleList(param *command.Query |
|
@@ -540,9 +540,8 @@ func (srv *SummaryEvaluationService) GetTargetUserCycleList(param *command.Query |
540
|
cycleList := []adapter.CycleListAdapter{}
|
540
|
cycleList := []adapter.CycleListAdapter{}
|
541
|
for _, v := range cycleData {
|
541
|
for _, v := range cycleData {
|
542
|
m := adapter.CycleListAdapter{
|
542
|
m := adapter.CycleListAdapter{
|
543
|
- SummaryEvaluationId: v.SummaryEvaluationId,
|
|
|
544
|
- CycleId: v.CycleId,
|
|
|
545
|
- CycleName: v.CycleName,
|
543
|
+ CycleId: v.CycleId,
|
|
|
544
|
+ CycleName: v.CycleName,
|
546
|
}
|
545
|
}
|
547
|
|
546
|
|
548
|
cycleList = append(cycleList, m)
|
547
|
cycleList = append(cycleList, m)
|
|
@@ -1350,7 +1349,7 @@ func (srv *SummaryEvaluationService) editEvaluationValue( |
|
@@ -1350,7 +1349,7 @@ func (srv *SummaryEvaluationService) editEvaluationValue( |
1350
|
evaluationItems []*domain.EvaluationItemUsed,
|
1349
|
evaluationItems []*domain.EvaluationItemUsed,
|
1351
|
updatedValue []command.UpdatedItemValue,
|
1350
|
updatedValue []command.UpdatedItemValue,
|
1352
|
defaultItemValue []*domain.SummaryEvaluationValue,
|
1351
|
defaultItemValue []*domain.SummaryEvaluationValue,
|
1353
|
- IsTemporary bool,
|
1352
|
+ isTemporary bool,
|
1354
|
) error {
|
1353
|
) error {
|
1355
|
evaluationItemMap := map[int]*domain.EvaluationItemUsed{}
|
1354
|
evaluationItemMap := map[int]*domain.EvaluationItemUsed{}
|
1356
|
evaluationValueMap := map[int]*domain.SummaryEvaluationValue{}
|
1355
|
evaluationValueMap := map[int]*domain.SummaryEvaluationValue{}
|
|
@@ -1358,7 +1357,7 @@ func (srv *SummaryEvaluationService) editEvaluationValue( |
|
@@ -1358,7 +1357,7 @@ func (srv *SummaryEvaluationService) editEvaluationValue( |
1358
|
for _, v := range evaluationItems {
|
1357
|
for _, v := range evaluationItems {
|
1359
|
newValue := &domain.SummaryEvaluationValue{}
|
1358
|
newValue := &domain.SummaryEvaluationValue{}
|
1360
|
newValue.SetBlankValue(evaluationData, v)
|
1359
|
newValue.SetBlankValue(evaluationData, v)
|
1361
|
- if IsTemporary {
|
1360
|
+ if isTemporary {
|
1362
|
newValue.IsTemporary = 1
|
1361
|
newValue.IsTemporary = 1
|
1363
|
}
|
1362
|
}
|
1364
|
evaluationValueMap[v.Id] = newValue
|
1363
|
evaluationValueMap[v.Id] = newValue
|
|
@@ -1366,6 +1365,7 @@ func (srv *SummaryEvaluationService) editEvaluationValue( |
|
@@ -1366,6 +1365,7 @@ func (srv *SummaryEvaluationService) editEvaluationValue( |
1366
|
//重置计数
|
1365
|
//重置计数
|
1367
|
evaluationData.ResetTotalRating(v)
|
1366
|
evaluationData.ResetTotalRating(v)
|
1368
|
}
|
1367
|
}
|
|
|
1368
|
+ //如果存在旧值
|
1369
|
//新值的id 替换为旧值id
|
1369
|
//新值的id 替换为旧值id
|
1370
|
for _, v := range *itemValueList {
|
1370
|
for _, v := range *itemValueList {
|
1371
|
if mValue, ok := evaluationValueMap[v.EvaluationItemId]; ok {
|
1371
|
if mValue, ok := evaluationValueMap[v.EvaluationItemId]; ok {
|