作者 郑周

Merge remote-tracking branch 'origin/test' into test

1 package adapter 1 package adapter
2 2
3 type ListUserAssessContent struct { 3 type ListUserAssessContent struct {
4 - TableHeader []ListTableHeader `json:"tableHeader"`  
5 - List []map[string]string `json:"list"`  
6 - Total int `json:"total"` 4 + TableHeader []ListTableHeader `json:"tableHeader"`
  5 + List []map[string]interface{} `json:"list"`
  6 + Total int `json:"total"`
7 } 7 }
@@ -163,11 +163,11 @@ func (srv StaffAssessServeice) ListUserAssessContentCycleDay(param *query.ListAs @@ -163,11 +163,11 @@ func (srv StaffAssessServeice) ListUserAssessContentCycleDay(param *query.ListAs
163 //过滤重复的列 163 //过滤重复的列
164 headerMap := map[string]string{} 164 headerMap := map[string]string{}
165 // 获取已经填报的内容 165 // 获取已经填报的内容
166 - changeableRows := map[string]map[string]string{} 166 + changeableRows := map[string]map[string]interface{}{}
167 tableSort := []string{} //确定列表行数据的顺序 167 tableSort := []string{} //确定列表行数据的顺序
168 for i, v := range contentList { 168 for i, v := range contentList {
169 if _, ok := changeableRows[v.TargetUserId]; !ok { 169 if _, ok := changeableRows[v.TargetUserId]; !ok {
170 - changeableRows[v.TargetUserId] = map[string]string{} 170 + changeableRows[v.TargetUserId] = map[string]interface{}{}
171 tableSort = append(tableSort, v.TargetUserId) 171 tableSort = append(tableSort, v.TargetUserId)
172 } 172 }
173 changeableRows[v.TargetUserId]["targetUserName"] = v.TargetUserName 173 changeableRows[v.TargetUserId]["targetUserName"] = v.TargetUserName
@@ -186,7 +186,7 @@ func (srv StaffAssessServeice) ListUserAssessContentCycleDay(param *query.ListAs @@ -186,7 +186,7 @@ func (srv StaffAssessServeice) ListUserAssessContentCycleDay(param *query.ListAs
186 changeableRows[v.TargetUserId][key] = v.Value 186 changeableRows[v.TargetUserId][key] = v.Value
187 } 187 }
188 } 188 }
189 - list := []map[string]string{} 189 + list := []map[string]interface{}{}
190 for _, v := range tableSort { 190 for _, v := range tableSort {
191 for _, v2 := range changeableHeader { 191 for _, v2 := range changeableHeader {
192 if _, ok := changeableRows[v][v2.Key]; ok { 192 if _, ok := changeableRows[v][v2.Key]; ok {