ziwen 2 years ago
parent
commit
408b00204a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      services/company/permission.go

+ 2 - 2
services/company/permission.go

@@ -1090,12 +1090,12 @@ LOOP:
 			temp.List = item.List
 			//大宗商品分类内合并PTA&MEG
 			if temp.ClassifyName == "化工" {
-				for _, secondItem := range temp.List {
+				for i, secondItem := range temp.List {
 					if secondItem.ChartPermissionName == "PTA"{
 						secondItem.ChartPermissionName = "PTA&MEG"
 					}
 					if secondItem.ChartPermissionName == "MEG" {
-						continue LOOP
+						temp.List = append(temp.List[:i], temp.List[i+1:]...)
 					}
 				}
 			}