From 5d971aadea398a175e50b32371afb037d16b4bf7 Mon Sep 17 00:00:00 2001
From: houruijun <411269194@kidgrow.com>
Date: Mon, 15 Jun 2020 11:18:46 +0800
Subject: [PATCH] 1.用户注册,消费记录,续费记录,添加用户,重置密码,设为管理员接口增加 2.修改管理后台关联的改动。

---
 kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysRoleMenuMapper.xml |   53 +++++++++++++++++++++++++++++++++++------------------
 1 files changed, 35 insertions(+), 18 deletions(-)

diff --git a/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysRoleMenuMapper.xml b/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysRoleMenuMapper.xml
index f4ef3b9..46bfe46 100644
--- a/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysRoleMenuMapper.xml
+++ b/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysRoleMenuMapper.xml
@@ -30,22 +30,39 @@
 		ORDER BY sort ASC
 	</select>
 
-    <select id="findMenusByRoleCodes" resultType="com.kidgrow.common.model.SysMenu">
-		select distinct t.* from sys_menu t
-		inner join sys_role_menu r on r.menu_id = t.id
-		inner join sys_role rl on rl.id = r.role_id and rl.tenant_id=#{tenantId} and rl.enabled=1
-		where
-		rl.code in
-		<foreach collection="roleCodes" index="index" item="roleCode"
-				 open="(" separator="," close=")">
-			#{roleCode}
-		</foreach>
-		<if test="type != null">
-			and t.type = #{type}
-		</if>
-		and t.hidden = 0
-		and t.tenant_id = #{tenantId}
-		and t.enabled = 1
-		ORDER BY sort ASC
-	</select>
+<!--    <select id="findMenusByRoleCodes" resultType="com.kidgrow.common.model.SysMenu">-->
+<!--		select distinct t.* from sys_menu t-->
+<!--		inner join sys_role_menu r on r.menu_id = t.id-->
+<!--		inner join sys_role rl on rl.id = r.role_id and rl.tenant_id=#{tenantId} and rl.enabled=1-->
+<!--		where-->
+<!--		rl.code in-->
+<!--		<foreach collection="roleCodes" index="index" item="roleCode"-->
+<!--				 open="(" separator="," close=")">-->
+<!--			#{roleCode}-->
+<!--		</foreach>-->
+<!--		<if test="type != null">-->
+<!--			and t.type = #{type}-->
+<!--		</if>-->
+<!--		and t.hidden = 0-->
+<!--		and t.tenant_id = #{tenantId}-->
+<!--		and t.enabled = 1-->
+<!--		ORDER BY sort ASC-->
+<!--	</select>-->
+	    <select id="findMenusByRoleCodes" resultType="com.kidgrow.common.model.SysMenu">
+			select distinct t.* from sys_menu t
+			inner join sys_role_menu r on r.menu_id = t.id
+			inner join sys_role rl on rl.id = r.role_id  and rl.enabled=1
+			where
+			rl.code in
+			<foreach collection="roleCodes" index="index" item="roleCode"
+					 open="(" separator="," close=")">
+				#{roleCode}
+			</foreach>
+			<if test="type != null">
+				and t.type = #{type}
+			</if>
+			and t.hidden = 0
+			and t.enabled = 1
+			ORDER BY sort ASC
+		</select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0