fix : 非管理员用户登录有权限错误

This commit is contained in:
clay
2024-03-08 20:05:47 +08:00
parent c6928f1f01
commit 77f1a5eb63

View File

@@ -88,7 +88,7 @@
left join sys_role r on r.role_id = rm.role_id
left join sys_user_role ur on ur.role_id = r.role_id
<where>
<if test="userId != null">and ur.role_id = #{userId}</if>
<if test="userId != null">and ur.user_id = #{userId}</if>
<if test="menuName != null and menuName != ''">and m.menu_name like concat('%',#{menuName},'%')</if>
<if test="state != null and state != ''">and m.state = #{state}</if>
<if test="excludeId != null ">and m.menu_id != #{excludeId} and parent_id != #{excludeId}</if>