Browse Source

fix:超管登录不展示租户菜单

xuezizhuo 1 year ago
parent
commit
bba2af75c5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml

+ 1 - 0
ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml

@@ -83,6 +83,7 @@
 	<select id="selectMenuTreeAll" resultMap="SysMenuResult">
 		select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
 		from sys_menu m where m.menu_type in ('M', 'C') and m.status = 0
+		and m.menu_id not in (select DISTINCT menu_id from sys_tenant_menu)
 		order by m.parent_id, m.order_num
 	</select>