Leeyh1121 5 months ago
commit 0d4d4fa535

@ -16,19 +16,27 @@
<select id="getPolicyList" parameterType="map" resultType="dataobject">/* 로그인 정책 목록 조회(policyMapper.getPolicyList) */ <select id="getPolicyList" parameterType="map" resultType="dataobject">/* 로그인 정책 목록 조회(policyMapper.getPolicyList) */
<include refid="utility.paging-prefix"/> <include refid="utility.paging-prefix"/>
SELECT A.USER_ID SELECT A.USER_ID
, USER_NM , A.USER_NM
, IP_ADRS , B.IP_ADRS
, DPLCT_YN , B.DPLCT_YN
, LIMIT_YN , B.LIMIT_YN
, MDFR , B.MDFR
, MDFCN_DT , B.MDFCN_DT
FROM TB_USER A LEFT OUTER JOIN TB_LOGIN_POLICY B ON A.USER_ID = B.USER_ID FROM TB_USER A
LEFT OUTER JOIN TB_LOGIN_POLICY B ON (A.USER_ID = B.USER_ID)
<if test="term != null">WHERE A.${by} LIKE CONCAT('%', #{term}, '%')</if> <if test="term != null">WHERE A.${by} LIKE CONCAT('%', #{term}, '%')</if>
<include refid="utility.orderBy" /> <include refid="utility.orderBy" />
<include refid="utility.paging-suffix"/></select> <include refid="utility.paging-suffix"/></select>
<select id="getPolicies" parameterType="map" resultMap="policyRow">/* 로그인 정책 가져오기(policyMapper.getPolicies) */ <select id="getPolicies" parameterType="map" resultMap="policyRow">/* 로그인 정책 가져오기(policyMapper.getPolicies) */
SELECT * SELECT USER_ID
, IP_ADRS
, DPLCT_YN
, LIMIT_YN
, REG_DT
, RGTR
, MDFCN_DT
, MDFR
FROM TB_LOGIN_POLICY FROM TB_LOGIN_POLICY
<if test="userIDs != null">WHERE USER_ID IN (<foreach collection="userIDs" item="userID" separator=",">#{userID}</foreach>)</if> <if test="userIDs != null">WHERE USER_ID IN (<foreach collection="userIDs" item="userID" separator=",">#{userID}</foreach>)</if>
ORDER BY USER_ID</select> ORDER BY USER_ID</select>

Loading…
Cancel
Save