获取权限列表过滤无用列表

This commit is contained in:
张松 2025-02-13 15:00:41 +08:00
parent cc47fb8636
commit 7fb08e20b9
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@
from sys_users_roles as a
left join sys_roles_menus as b on a.role_id = b.role_id
left join sys_menu as c on c.menu_id = b.menu_id
where a.user_id = #{userId}
where a.user_id = #{userId} and c.menu_id is not null
<if test="type != null">
and c.type=#{type}
</if>