...
|
...
|
@@ -540,9 +540,8 @@ func (srv *SummaryEvaluationService) GetTargetUserCycleList(param *command.Query |
|
|
cycleList := []adapter.CycleListAdapter{}
|
|
|
for _, v := range cycleData {
|
|
|
m := adapter.CycleListAdapter{
|
|
|
SummaryEvaluationId: v.SummaryEvaluationId,
|
|
|
CycleId: v.CycleId,
|
|
|
CycleName: v.CycleName,
|
|
|
CycleId: v.CycleId,
|
|
|
CycleName: v.CycleName,
|
|
|
}
|
|
|
|
|
|
cycleList = append(cycleList, m)
|
...
|
...
|
@@ -1350,7 +1349,7 @@ func (srv *SummaryEvaluationService) editEvaluationValue( |
|
|
evaluationItems []*domain.EvaluationItemUsed,
|
|
|
updatedValue []command.UpdatedItemValue,
|
|
|
defaultItemValue []*domain.SummaryEvaluationValue,
|
|
|
IsTemporary bool,
|
|
|
isTemporary bool,
|
|
|
) error {
|
|
|
evaluationItemMap := map[int]*domain.EvaluationItemUsed{}
|
|
|
evaluationValueMap := map[int]*domain.SummaryEvaluationValue{}
|
...
|
...
|
@@ -1358,7 +1357,7 @@ func (srv *SummaryEvaluationService) editEvaluationValue( |
|
|
for _, v := range evaluationItems {
|
|
|
newValue := &domain.SummaryEvaluationValue{}
|
|
|
newValue.SetBlankValue(evaluationData, v)
|
|
|
if IsTemporary {
|
|
|
if isTemporary {
|
|
|
newValue.IsTemporary = 1
|
|
|
}
|
|
|
evaluationValueMap[v.Id] = newValue
|
...
|
...
|
@@ -1366,6 +1365,7 @@ func (srv *SummaryEvaluationService) editEvaluationValue( |
|
|
//重置计数
|
|
|
evaluationData.ResetTotalRating(v)
|
|
|
}
|
|
|
//如果存在旧值
|
|
|
//新值的id 替换为旧值id
|
|
|
for _, v := range *itemValueList {
|
|
|
if mValue, ok := evaluationValueMap[v.EvaluationItemId]; ok {
|
...
|
...
|
|