Prechádzať zdrojové kódy

处理isShow的问题

zhou.xiaoning 3 rokov pred
rodič
commit
17016d15a2

BIN
permission_generator/buildsql


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 {