作者 tangxvhui
@@ -104,10 +104,9 @@ func (srv *SummaryEvaluationService) Evaluation360List(param *command.QueryEvalu @@ -104,10 +104,9 @@ func (srv *SummaryEvaluationService) Evaluation360List(param *command.QueryEvalu
104 } 104 }
105 105
106 if pList, ok := itemMap[item.EvaluationProjectId]; !ok { 106 if pList, ok := itemMap[item.EvaluationProjectId]; !ok {
107 - pList = make([]*domain.EvaluationItemUsed, 0)  
108 - itemMap[item.EvaluationProjectId] = pList 107 + itemMap[item.EvaluationProjectId] = make([]*domain.EvaluationItemUsed, 0)
109 } else { 108 } else {
110 - pList = append(pList, item) 109 + itemMap[item.EvaluationProjectId] = append(pList, item)
111 } 110 }
112 } 111 }
113 } 112 }
@@ -148,7 +147,7 @@ func (srv *SummaryEvaluationService) Evaluation360List(param *command.QueryEvalu @@ -148,7 +147,7 @@ func (srv *SummaryEvaluationService) Evaluation360List(param *command.QueryEvalu
148 if key, ok := uniqueColumnsMap[name]; ok { // 动态列用name -> key 147 if key, ok := uniqueColumnsMap[name]; ok { // 动态列用name -> key
149 valueKey := fmt.Sprintf("%d-%d", v.Id, item.Id) 148 valueKey := fmt.Sprintf("%d-%d", v.Id, item.Id)
150 if it, ok := valueMap[valueKey]; ok { 149 if it, ok := valueMap[valueKey]; ok {
151 - rowMap[key] = it.Score 150 + rowMap[key] = it.Value
152 } else { 151 } else {
153 rowMap[key] = "" 152 rowMap[key] = ""
154 } 153 }