From 9b0828be8ec0280e3711bb1a22cc5b4f9121b1d6 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 22 Mar 2020 16:41:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E7=A6=81=E7=94=A8&=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E9=9A=90=E8=97=8F=E4=B8=8D=E6=9F=A5=E8=AF=A2=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi/src/main/resources/mybatis/system/SysMenuMapper.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ruoyi/src/main/resources/mybatis/system/SysMenuMapper.xml b/ruoyi/src/main/resources/mybatis/system/SysMenuMapper.xml index 2ed824f29..179a679e0 100644 --- a/ruoyi/src/main/resources/mybatis/system/SysMenuMapper.xml +++ b/ruoyi/src/main/resources/mybatis/system/SysMenuMapper.xml @@ -96,7 +96,8 @@ from sys_menu m left join sys_role_menu rm on m.menu_id = rm.menu_id left join sys_user_role ur on rm.role_id = ur.role_id - where ur.user_id = #{userId} + left join sys_role r on r.role_id = ur.role_id + where m.visible = '0' and r.status = '0' and ur.user_id = #{userId}