作者 tangxvhui

更新

... ... @@ -656,18 +656,18 @@ func (srv StaffAssessServeice) ListUserAssessContentCycleDayV2(param *query.List
changeableRows[v.TargetUserId]["assessId"] = v.AssessId
changeableRows[v.TargetUserId]["cycleId"] = v.CycleId
changeableRows[v.TargetUserId]["beginDay"] = v.BeginDay
if v.ContentId > 0 {
name := fmt.Sprintf("%s-%s", v.Category, v.ContentName)
key := fmt.Sprintf("k%d", i)
if _, ok := headerMap[name]; !ok {
changeableHeader = append(changeableHeader, adapter.ListTableHeader{
Key: key, Name: name,
})
headerMap[name] = key
}
key = headerMap[name]
changeableRows[v.TargetUserId][key] = v.Value
// if v.ContentId > 0 {
name := fmt.Sprintf("%s-%s", v.Category, v.ContentName)
key := fmt.Sprintf("k%d", i)
if _, ok := headerMap[name]; !ok {
changeableHeader = append(changeableHeader, adapter.ListTableHeader{
Key: key, Name: name,
})
headerMap[name] = key
}
key = headerMap[name]
changeableRows[v.TargetUserId][key] = v.Value
// }
}
list := []map[string]interface{}{}
for _, v := range tableSort {
... ...