apps status and ExtendAttr
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -12,6 +12,5 @@
|
||||
and app.id = #{value}
|
||||
and fbd.id = #{value}
|
||||
and fbd.id = app.id
|
||||
and status = 1
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
and app.id = #{value}
|
||||
and svd.id = #{value}
|
||||
and svd.id = app.id
|
||||
and app.status = 1
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -12,7 +12,6 @@
|
||||
and app.id = #{value}
|
||||
and tbd.id = #{value}
|
||||
and tbd.id = app.id
|
||||
and status = 1
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user