#I8651R 新建了应用,但在认证系统里面看不到

This commit is contained in:
MaxKey 2023-10-08 22:46:34 +08:00
parent acfd2aa269
commit b8838cbae8

View File

@ -180,28 +180,28 @@
select distinct
app.*
from
mxk_apps app,mxk_role_permissions p,mxk_roles r
mxk_apps app,mxk_group_permissions p,mxk_groups g
where
app.id = p.appid
and p.roleid = r.id
and p.groupid = g.id
and app.instid = #{instId}
and p.instid = #{instId}
and r.instid = #{instId}
and g.instid = #{instId}
and app.visible != 0
and r.id in(
and g.id in(
<!-- ROLE_ALL_USER -->
select id as roleid
from mxk_roles
where rolecode = 'ROLE_ALL_USER'
select id as groupid
from mxk_groups
where groupcode = 'ROLE_ALL_USER'
union
<!-- role member -->
<!-- groups member -->
select
rm.roleid
gm.groupid
from
mxk_role_member rm,mxk_userinfo u
where rm.memberid = u.id
mxk_group_member gm,mxk_userinfo u
where gm.memberid = u.id
<if test="userId != null and userId != ''">
and u.id = #{userId}
</if>