@@ -3663,9 +3663,11 @@ func (this *ActivityCoAntroller) LabelTypeListV5() {
br.ErrMsg = "获取活动【新】标签Map失败, Err: " + e.Error()
return
}
- for k := range list {
- for k2 := range list[k].List {
- list[k].List[k2].IsNew = newLabelMap[list[k].List[k2].ActivityId]
+ for k, v := range list {
+ if v.ActivityTypeId == 1 {
+ for k2 := range list[k].List {
+ list[k].List[k2].IsNew = newLabelMap[list[k].List[k2].ActivityId]
+ }
@@ -1286,7 +1286,10 @@ func (this *ReportController) ReportListByType() {
fmt.Println(tbdb)
- condition = ` AND publish_status = 1`
+ condition = ` AND publish_status = 1 `
+ if reportType == "1" {
+ condition += ` LIMIT 1 `
total, err := models.GetCygxReportSelectionPublic(condition, tbdb, pars)
if err != nil {
br.Msg = "获取信息失败"