Browse Source

no message

xingzai 5 months ago
parent
commit
8ee9cea079
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controllers/cygx/industrial_management.go

+ 2 - 2
controllers/cygx/industrial_management.go

@@ -100,9 +100,9 @@ func (this *IndustrialManagementController) ChartPermissionListIco() {
 	havestrategy, _ := this.GetInt("Havestrategy")
 	var condition string
 	if havestrategy > 0 {
-		condition = ` AND chart_permission_id IN (19,20,21,22,23,31) `
+		condition = ` AND chart_permission_id IN (19,20,21,22,23) `
 	} else {
-		condition = ` AND chart_permission_id IN (19,20,21,22) `
+		condition = ` AND chart_permission_id IN (19,20,21,22) OR ( chart_permission_name = '周期'  AND product_id = 2 )   `
 	}
 	list, err := cygx.GetChartPermissionIco(condition)
 	if err != nil {