mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-07 01:18:27 +08:00
role_permissions
This commit is contained in:
parent
ee4af94b55
commit
030a28c82f
@ -176,22 +176,22 @@
|
|||||||
select distinct
|
select distinct
|
||||||
app.*
|
app.*
|
||||||
from
|
from
|
||||||
mxk_apps app,mxk_group_privileges gp,mxk_groups g
|
mxk_apps app,mxk_role_permissions p,mxk_roles r
|
||||||
where
|
where
|
||||||
app.id=gp.appid
|
app.id = p.appid
|
||||||
and gp.groupid=g.id
|
and p.roleid = r.id
|
||||||
and app.instid = #{instId}
|
and app.instid = #{instId}
|
||||||
and gp.instid = #{instId}
|
and p.instid = #{instId}
|
||||||
and g.instid = #{instId}
|
and r.instid = #{instId}
|
||||||
and app.visible != 0
|
and app.visible != 0
|
||||||
and (
|
and (
|
||||||
g.id='ROLE_ALL_USER'
|
r.id='ROLE_ALL_USER'
|
||||||
or g.id in(
|
or r.id in(
|
||||||
select
|
select
|
||||||
gm.groupid
|
rm.roleid
|
||||||
from
|
from
|
||||||
mxk_group_member gm,mxk_userinfo u
|
mxk_role_member rm,mxk_userinfo u
|
||||||
where gm.memberid = u.id
|
where rm.memberid = u.id
|
||||||
<if test="userId != null and userId != ''">
|
<if test="userId != null and userId != ''">
|
||||||
and u.id = #{userId}
|
and u.id = #{userId}
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user