解决无开发权限工具,会自动带出的问题
This commit is contained in:
+8
-9
@@ -51,21 +51,20 @@
|
|||||||
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}
|
||||||
)
|
)
|
||||||
or (p.url like '%:code' and p.url like '/online%' and p.hidden = 1)
|
)
|
||||||
or p.url = '/online')
|
and p.del_flag = 0
|
||||||
and p.del_flag = 0
|
|
||||||
<!--update begin Author:lvdandan Date:20200213 for:加入部门权限 -->
|
<!--update begin Author:lvdandan Date:20200213 for:加入部门权限 -->
|
||||||
UNION
|
UNION
|
||||||
SELECT p.*
|
SELECT p.*
|
||||||
FROM sys_permission p
|
FROM sys_permission p
|
||||||
WHERE exists(
|
WHERE exists(
|
||||||
select a.id from sys_depart_role_permission a
|
select a.id from sys_depart_role_permission a
|
||||||
join sys_depart_role b on a.role_id = b.id
|
join sys_depart_role b on a.role_id = b.id
|
||||||
join sys_depart_role_user c on c.drole_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}
|
||||||
)
|
)
|
||||||
and p.del_flag = 0
|
and p.del_flag = 0
|
||||||
<!--update end Author:lvdandan Date:20200213 for:加入部门权限 -->
|
<!--update end Author:lvdandan Date:20200213 for:加入部门权限 -->
|
||||||
) h order by h.sort_no ASC
|
) h order by h.sort_no ASC
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Reference in New Issue
Block a user