Update SysPermissionMapper.xml

修复部门权限不生效问题
pull/8654/head
liuliwanzi 2025-07-28 16:30:26 +08:00 committed by GitHub
parent 118775cf79
commit 0c735b0607
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 31 additions and 2 deletions

View File

@ -141,7 +141,36 @@
)
and p.del_flag = 0
<!-- update end Author: taoyan Date:20200213 forQQYUN-4303 【low app】 用户登录的时候 加载low app的套餐权限 加到用户信息 -->
UNION
SELECT p.id,
p.parent_id,
p.name,
p.url,
p.component,
p.is_route,
p.component_name,
p.redirect,
p.menu_type,
p.perms,
p.perms_type,
p.sort_no,
p.always_show,
p.icon,
p.is_leaf,
p.keep_alive,
p.hidden,
p.hide_tab,
p.rule_flag,
p.status,
p.internal_or_external
FROM sys_permission p
WHERE p.id IN (
SELECT DISTINCT a.permission_id
FROM sys_depart_permission a
INNER JOIN sys_user_depart d ON a.depart_id = d.dep_id
INNER JOIN sys_user u ON d.user_id = u.id AND u.id = #{userId,jdbcType=VARCHAR}
)
AND p.del_flag = 0
) h order by h.sort_no ASC
</select>