mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-07 01:18:27 +08:00
#I8651R 新建了应用,但在认证系统里面看不到
This commit is contained in:
parent
acfd2aa269
commit
b8838cbae8
@ -180,28 +180,28 @@
|
|||||||
select distinct
|
select distinct
|
||||||
app.*
|
app.*
|
||||||
from
|
from
|
||||||
mxk_apps app,mxk_role_permissions p,mxk_roles r
|
mxk_apps app,mxk_group_permissions p,mxk_groups g
|
||||||
where
|
where
|
||||||
app.id = p.appid
|
app.id = p.appid
|
||||||
and p.roleid = r.id
|
and p.groupid = g.id
|
||||||
and app.instid = #{instId}
|
and app.instid = #{instId}
|
||||||
and p.instid = #{instId}
|
and p.instid = #{instId}
|
||||||
and r.instid = #{instId}
|
and g.instid = #{instId}
|
||||||
and app.visible != 0
|
and app.visible != 0
|
||||||
and r.id in(
|
and g.id in(
|
||||||
<!-- ROLE_ALL_USER -->
|
<!-- ROLE_ALL_USER -->
|
||||||
select id as roleid
|
select id as groupid
|
||||||
from mxk_roles
|
from mxk_groups
|
||||||
where rolecode = 'ROLE_ALL_USER'
|
where groupcode = 'ROLE_ALL_USER'
|
||||||
|
|
||||||
union
|
union
|
||||||
|
|
||||||
<!-- role member -->
|
<!-- groups member -->
|
||||||
select
|
select
|
||||||
rm.roleid
|
gm.groupid
|
||||||
from
|
from
|
||||||
mxk_role_member rm,mxk_userinfo u
|
mxk_group_member gm,mxk_userinfo u
|
||||||
where rm.memberid = u.id
|
where gm.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