SELECT 쿼리 애스터리스크(*) 제거

dev
이범준 5 months ago
parent c358729268
commit 50ea1d31f3

@ -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