作者 tangxvhui

更新

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