From 097a14bada17d8b2bc776ba0d97e6c67bf1eba89 Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Mon, 06 Sep 2021 10:30:49 +0800
Subject: [PATCH] 1.许可模板

---
 src/main/java/org/springblade/modules/system/mapper/RoleMapper.xml |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/springblade/modules/system/mapper/RoleMapper.xml b/src/main/java/org/springblade/modules/system/mapper/RoleMapper.xml
index 7319078..53884ab 100644
--- a/src/main/java/org/springblade/modules/system/mapper/RoleMapper.xml
+++ b/src/main/java/org/springblade/modules/system/mapper/RoleMapper.xml
@@ -21,11 +21,13 @@
     </resultMap>
 
     <select id="selectRolePage" resultMap="roleResultMap">
-        select * from blade_role where is_deleted = 0
+        select *
+        from blade_role
+        where is_deleted = 0
     </select>
 
     <select id="tree" resultMap="treeNodeResultMap">
-        select id, parent_id, role_name as title, id as "value", id as "key" from blade_role where is_deleted = 0
+        select id, parent_id, role_name as title, id as "value", id as "key" from blade_role where is_deleted = 0 AND id!=1123598816738675201
         <if test="param1!=null">
             and tenant_id = #{param1}
         </if>
@@ -63,4 +65,16 @@
         and is_deleted = 0
     </select>
 
+
+    <select id="Info" resultType="java.lang.String">
+        SELECT role_alias as rolename
+        FROM blade_role
+        WHERE id = #{id}
+          and is_deleted = 0
+    </select>
+
+    <select id="selectRole" resultType="java.util.HashMap">
+        SELECT id,role_name AS title FROM blade_role WHERE is_deleted = 0 AND id != 1123598816738675201
+    </select>
+
 </mapper>

--
Gitblit v1.9.3