Browse Source

添加策略平台领域查询

xingzai 2 years ago
parent
commit
f2c071a331
2 changed files with 4 additions and 1 deletions
  1. 3 1
      controllers/report.go
  2. 1 0
      models/report_mapping.go

+ 3 - 1
controllers/report.go

@@ -547,7 +547,9 @@ func (this *MobileReportController) List() {
 		//	return
 		//}
 		//fmt.Println(detail.PolymerizationId)
-		if detail.PolymerizationId != "" {
+		if detail.CeLueFieldId != "" {
+			condition = ` AND ce_lue_field_id IN(` + detail.CeLueFieldId + `)`
+		} else if detail.PolymerizationId != "" {
 			condition = ` AND category_id IN(` + detail.PolymerizationId + `)`
 		} else {
 			categoryIdSet, errCategory := models.GetdetailByCategoryIdSet(categoryId)

+ 1 - 0
models/report_mapping.go

@@ -14,6 +14,7 @@ type ReportMapping struct {
 	PermissionType      int    `description:"1主观,2客观"`
 	CategoryIdSet       int    `description:"分类映射id"`
 	PolymerizationId    string `description:"分类聚合ID"`
+	CeLueFieldId        string `description:"策略平台领域ID"`
 }
 
 type ReportMappingHome struct {