Browse Source

no message

xingzai 1 year ago
parent
commit
a124031395
1 changed files with 14 additions and 14 deletions
  1. 14 14
      controllers/cygx/activity_special.go

+ 14 - 14
controllers/cygx/activity_special.go

@@ -155,20 +155,20 @@ func (this *ActivitySpecialCoAntroller) PreserveAndPublish() {
 		industrialActivityItems = make([]*cygx.CygxIndustrialActivityGroupManagement, 0)
 		subjectActivityItems = make([]*cygx.CygxIndustrialActivityGroupSubject, 0)
 	}
-	List := []*cygx.ChartPermissionRepMore{{PermissionName: "医药"}, {PermissionName: "消费"}, {PermissionName: "科技"}, {PermissionName: "智造"}, {PermissionName: "研选"}}
-	var haveCheck bool
-	for _, v := range List {
-		if permissionName == v.PermissionName {
-			haveCheck = true
-		}
-	}
-	if !haveCheck {
-		br.Msg = "行业名称:" + permissionName + "不存在"
-		return
-	}
-	if strings.Contains(permissionName, "研选") {
-		permissionName = utils.CHART_PERMISSION_NAME_MF_YANXUAN
-	}
+	//List := []*cygx.ChartPermissionRepMore{{PermissionName: "医药"}, {PermissionName: "消费"}, {PermissionName: "科技"}, {PermissionName: "智造"}, {PermissionName: "研选"}}
+	//var haveCheck bool
+	//for _, v := range List {
+	//	if permissionName == v.PermissionName {
+	//		haveCheck = true
+	//	}
+	//}
+	//if !haveCheck {
+	//	br.Msg = "行业名称:" + permissionName + "不存在"
+	//	return
+	//}
+	//if strings.Contains(permissionName, "研选") {
+	//	permissionName = utils.CHART_PERMISSION_NAME_MF_YANXUAN
+	//}
 	charInfo, errCategory := cygx.GetCategoryInfoByName(permissionName)
 	if errCategory != nil {
 		br.Msg = "请选择所属行业"