Sfoglia il codice sorgente

fix:h5研报品种展示

zqbao 7 mesi fa
parent
commit
8c34d5c19d
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      controllers/report.go

+ 6 - 0
controllers/report.go

@@ -852,6 +852,9 @@ func (this *ReportNoAuthController) List() {
 			return
 		}
 		for _, v := range classifyList {
+			if v.HasChild == 1 {
+				continue
+			}
 			switch v.Level {
 			case 1:
 				classifyFirstIds = append(classifyFirstIds, v.Id)
@@ -917,6 +920,9 @@ func (this *ReportNoAuthController) List() {
 			return
 		}
 		for _, v := range classifyList {
+			if v.HasChild == 1 {
+				continue
+			}
 			switch v.Level {
 			case 1:
 				classifyFirstIds = append(classifyFirstIds, v.Id)