|
|
|
@ -104,10 +104,14 @@ SELECT A.AUTH_ID
|
|
|
|
|
|
|
|
|
|
<sql id="selectAuthUser">
|
|
|
|
|
<include refid="utility.paging-prefix" />
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM TB_AUTH_USER
|
|
|
|
|
<if test="authIDs != null">WHERE AUTH_ID IN (<foreach collection="authIDs" item="authID" separator=",">#{authID}</foreach>)</if>
|
|
|
|
|
<if test="userIDs != null">WHERE USER_ID IN (<foreach collection="userIDs" item="userID" separator=",">#{userID}</foreach>)</if>
|
|
|
|
|
SELECT A.*, USER_ACNT
|
|
|
|
|
FROM TB_AUTH_USER A
|
|
|
|
|
, TB_USER B
|
|
|
|
|
<where>
|
|
|
|
|
<if test="authIDs != null">AND AUTH_ID IN (<foreach collection="authIDs" item="authID" separator=",">#{authID}</foreach>)</if>
|
|
|
|
|
<if test="userIDs != null">AND A.USER_ID IN (<foreach collection="userIDs" item="userID" separator=",">#{userID}</foreach>)</if>
|
|
|
|
|
AND A.USER_ID = B.USER_ID
|
|
|
|
|
</where>
|
|
|
|
|
<include refid="utility.orderBy"/>
|
|
|
|
|
<include refid="utility.paging-suffix" /></sql>
|
|
|
|
|
|
|
|
|
|