apps status and ExtendAttr

This commit is contained in:
MaxKey
2022-10-16 09:10:00 +08:00
parent 4cae82fa03
commit 2fddb2910c
40 changed files with 1451 additions and 163 deletions

View File

@@ -37,7 +37,7 @@ public interface AppsMapper extends IJpaBaseMapper<Apps> {
public int updateApp(Apps app);
@Update("update mxk_apps set isextendattr=#{isExtendAttr}, extendattr=#{extendAttr} where id = #{id}")
@Update("update mxk_apps set extendattr=#{extendAttr} where id = #{id}")
public int updateExtendAttr(Apps app);

View File

@@ -8,7 +8,6 @@
mxk_apps_cas_details cd,
mxk_apps app
where app.instid = cd.instid
and app.status = 1
and cd.id = app.id
and (
app.id = #{value}

View File

@@ -12,6 +12,5 @@
and app.id = #{value}
and fbd.id = #{value}
and fbd.id = app.id
and status = 1
</select>
</mapper>

View File

@@ -11,7 +11,6 @@
where app.instid = jd.instid
and app.id = #{value}
and jd.id = #{value}
and status = 1
and jd.id = app.id
</select>

View File

@@ -143,8 +143,9 @@
sharedusername = #{sharedUsername},
sharedpassword = #{sharedPassword},
systemuserattr = #{systemUserAttr},
<!--
isextendattr = #{isExtendAttr},
<!--
extendattr = #{extendAttr},
-->
userpropertys = #{userPropertys},
@@ -184,21 +185,26 @@
and p.instid = #{instId}
and r.instid = #{instId}
and app.visible != 0
and (
r.id='ROLE_ALL_USER'
or r.id in(
select
rm.roleid
from
mxk_role_member rm,mxk_userinfo u
where rm.memberid = u.id
<if test="userId != null and userId != ''">
and u.id = #{userId}
</if>
<if test="username != null and username != ''">
and u.username = #{username}
</if>
)
and r.id in(
<!-- ROLE_ALL_USER -->
select id as roleid
from mxk_roles
where rolecode = 'ROLE_ALL_USER'
union
<!-- role member -->
select
rm.roleid
from
mxk_role_member rm,mxk_userinfo u
where rm.memberid = u.id
<if test="userId != null and userId != ''">
and u.id = #{userId}
</if>
<if test="username != null and username != ''">
and u.username = #{username}
</if>
)
<if test="appName != null and appName != ''">
and appname = #{appName}

View File

@@ -28,7 +28,6 @@
and app.id = #{value}
and svd.id = #{value}
and svd.id = app.id
and app.status = 1
</select>
</mapper>

View File

@@ -12,7 +12,6 @@
and app.id = #{value}
and tbd.id = #{value}
and tbd.id = app.id
and status = 1
</select>
</mapper>