角色管理-授权修改
This commit is contained in:
+4
-3
@@ -38,7 +38,8 @@
|
|||||||
</otherwise>
|
</otherwise>
|
||||||
</choose>
|
</choose>
|
||||||
</select>
|
</select>
|
||||||
|
<!-- join sys_role b on a.role_id = b.id
|
||||||
|
join sys_user_role c on c.role_id = b.id -->
|
||||||
<!-- 获取登录用户拥有的权限 -->
|
<!-- 获取登录用户拥有的权限 -->
|
||||||
<select id="queryByUser" parameterType="Object" resultMap="SysPermission">
|
<select id="queryByUser" parameterType="Object" resultMap="SysPermission">
|
||||||
SELECT * FROM (
|
SELECT * FROM (
|
||||||
@@ -46,8 +47,8 @@
|
|||||||
FROM sys_permission p
|
FROM sys_permission p
|
||||||
WHERE (exists(
|
WHERE (exists(
|
||||||
select a.id from sys_role_permission a
|
select a.id from sys_role_permission a
|
||||||
join sys_role b on a.role_id = b.id
|
join sys_depart_role b on a.role_id = b.role_id
|
||||||
join sys_user_role c on c.role_id = b.id
|
join sys_depart_role_user c on c.drole_id = b.id
|
||||||
join sys_user d on d.id = c.user_id
|
join sys_user d on d.id = c.user_id
|
||||||
where p.id = a.permission_id AND d.username = #{username,jdbcType=VARCHAR}
|
where p.id = a.permission_id AND d.username = #{username,jdbcType=VARCHAR}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user