Explorar o código

处理isShow的问题

zhou.xiaoning %!s(int64=3) %!d(string=hai) anos
pai
achega
17016d15a2
Modificáronse 3 ficheiros con 5 adicións e 1 borrados
  1. BIN=BIN
      permission_generator/buildsql
  2. BIN=BIN
      permission_generator/buildsql.exe
  3. 5 1
      permission_generator/main.go

BIN=BIN
permission_generator/buildsql


BIN=BIN
permission_generator/buildsql.exe


+ 5 - 1
permission_generator/main.go

@@ -152,7 +152,11 @@ func buildPCWEBSQL(datas []interface{}, parentCode string, level int, clientType
 		)
 
 		rulekey, hasRuleKey := data["rulekey"]
-		if hasRuleKey && rulekey != "" {
+		isshow := false
+		if _, hasIsShow := data["isshow"]; hasIsShow {
+			isshow = data["isshow"].(bool)
+		}
+		if (hasRuleKey && rulekey != "") && isshow {
 			rulekey = data["rulekey"].(string)
 
 			if data["remark"] != nil {