用户是否在指定组

master
zpl 4 years ago
parent 36fc867e34
commit 080abd7242

@ -376,7 +376,7 @@
SELECT COUNT(*) FROM WIP.USR U
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
WHERE U.SITE = #{site} AND U.USER_NAME = #{user}
WHERE U.SITE = #{site} AND U.USER_ID = #{user}
AND UG.USER_GROUP IN
<foreach item="item" index="index" collection="list" open="(" close=")" separator=",">UPPER(#{item})
</foreach>

Loading…
Cancel
Save