Browse Source

fix:h5研报品种展示

zqbao 7 tháng trước cách đây
mục cha
commit
8c34d5c19d
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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)