조회조건 수정

dev
mjkhan21 5 months ago
parent 2c41f56cc8
commit 76efe2f346

@ -76,7 +76,8 @@ SELECT USER_ID
FROM TB_SGG A LEFT OUTER JOIN TB_DEPT B
ON A.SGG_CD = B.SGG_CD
AND A.INST_CD = B.INST_CD
) B ON A.NSTT_CD = B.INST_CD OR (A.NSTT_CD = B.INST_CD AND A.DEPT_CD = B.DEPT_CD)
AND A.USE_YN = 'Y' AND B.USE_YN = 'Y'
) B ON A.NSTT_CD = B.INST_CD AND A.DEPT_CD = B.DEPT_CD
<where><if test="by != null and term != null">AND ${by} LIKE CONCAT('%', #{term}, '%')</if>
<if test="userIDs != null">USER_ID IN (<foreach collection="userIDs" item="userID" separator=",">#{userID}</foreach>)</if>
<if test="status == null and userIDs == null">AND STTS != 'D'</if>

Loading…
Cancel
Save