|
|
@ -373,10 +373,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
<!--自定义sql:查询用户是否在指定用户组-->
|
|
|
|
<!--自定义sql:查询用户是否在指定用户组-->
|
|
|
|
<select id="findUserGroupByUser" resultType="Integer">
|
|
|
|
<select id="findUserGroupByUser" resultType="Integer">
|
|
|
|
SELECT COUNT(*) FROM WIP.Z_NWA_USER ZNU
|
|
|
|
SELECT COUNT(*) FROM WIP.USR U
|
|
|
|
INNER JOIN WIP.USER_GROUP_MEMBER UGM ON UGM.USER_OR_GROUP_GBO = ZNU.HANDLE
|
|
|
|
INNER JOIN WIP.USER_GROUP_MEMBER UGM ON UGM.USER_OR_GROUP_GBO = U.HANDLE
|
|
|
|
INNER JOIN WIP.USER_GROUP UG ON UG.HANDLE = UGM.USER_GROUP_BO
|
|
|
|
INNER JOIN WIP.USER_GROUP UG ON UG.HANDLE = UGM.USER_GROUP_BO
|
|
|
|
WHERE ZNU.SITE = #{site} AND ZNU.USER_NAME = #{user}
|
|
|
|
WHERE U.SITE = #{site} AND U.USER_NAME = #{user}
|
|
|
|
AND UG.USER_GROUP IN
|
|
|
|
AND UG.USER_GROUP IN
|
|
|
|
<foreach item="item" index="index" collection="list" open="(" close=")" separator=",">UPPER(#{item})
|
|
|
|
<foreach item="item" index="index" collection="list" open="(" close=")" separator=",">UPPER(#{item})
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|