|
@@ -55,11 +55,14 @@ func (srv *SummaryEvaluationService) Evaluation360List(param *command.QueryEvalu |
|
@@ -55,11 +55,14 @@ func (srv *SummaryEvaluationService) Evaluation360List(param *command.QueryEvalu |
55
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
55
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
56
|
}
|
56
|
}
|
57
|
|
57
|
|
|
|
58
|
+ evaluationVersion := ""
|
|
|
59
|
+
|
58
|
ids := make([]int, 0)
|
60
|
ids := make([]int, 0)
|
59
|
projectIds := make([]int, 0)
|
61
|
projectIds := make([]int, 0)
|
60
|
for i := range list {
|
62
|
for i := range list {
|
61
|
ids = append(ids, list[i].Id)
|
63
|
ids = append(ids, list[i].Id)
|
62
|
projectIds = append(projectIds, list[i].EvaluationProjectId)
|
64
|
projectIds = append(projectIds, list[i].EvaluationProjectId)
|
|
|
65
|
+ evaluationVersion = string(list[i].Version)
|
63
|
}
|
66
|
}
|
64
|
|
67
|
|
65
|
// 固定列
|
68
|
// 固定列
|
|
@@ -148,11 +151,15 @@ func (srv *SummaryEvaluationService) Evaluation360List(param *command.QueryEvalu |
|
@@ -148,11 +151,15 @@ func (srv *SummaryEvaluationService) Evaluation360List(param *command.QueryEvalu |
148
|
if key, ok := uniqueColumnsMap[name]; ok { // 动态列用name -> key
|
151
|
if key, ok := uniqueColumnsMap[name]; ok { // 动态列用name -> key
|
149
|
valueKey := fmt.Sprintf("%d-%d", v.Id, item.Id)
|
152
|
valueKey := fmt.Sprintf("%d-%d", v.Id, item.Id)
|
150
|
if it, ok := valueMap[valueKey]; ok {
|
153
|
if it, ok := valueMap[valueKey]; ok {
|
|
|
154
|
+ if evaluationVersion == string(domain.EvaluationV1) {
|
151
|
if it.Weight > 0 {
|
155
|
if it.Weight > 0 {
|
152
|
rowMap[key] = it.Score
|
156
|
rowMap[key] = it.Score
|
153
|
} else {
|
157
|
} else {
|
154
|
rowMap[key] = it.Rating.Code
|
158
|
rowMap[key] = it.Rating.Code
|
155
|
}
|
159
|
}
|
|
|
160
|
+ } else if evaluationVersion == string(domain.EvaluationV2) {
|
|
|
161
|
+ rowMap[key] = it.Score
|
|
|
162
|
+ }
|
156
|
} else {
|
163
|
} else {
|
157
|
rowMap[key] = ""
|
164
|
rowMap[key] = ""
|
158
|
}
|
165
|
}
|