Przeglądaj źródła

fix: 产业报告首页-深度覆盖

hsun 2 lat temu
rodzic
commit
44432a3be9
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      controllers/report.go

+ 4 - 0
controllers/report.go

@@ -172,6 +172,10 @@ func (this *ReportController) IndustryList() {
 		var deepCondition string
 		var deepPars []interface{}
 		deepCondition += ` AND man.is_deep_label = 1`
+		if ChartPermissionId > 0 {
+			deepCondition += ` AND man.chart_permission_id = ?`
+			deepPars = append(deepPars, ChartPermissionId)
+		}
 		industryCountList, e := models.GetIndustryArtCountByCondition(deepCondition, deepPars)
 		if e != nil {
 			br.Msg = "获取信息失败"