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

main
이범준 5 months ago
parent 920d4b1d6d
commit 6b37d2947c

@ -17,13 +17,14 @@
/* 로그인 정책 목록 조회(policyMapper.getPolicyList) */ /* 로그인 정책 목록 조회(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"/> <include refid="utility.paging-suffix"/>
@ -31,7 +32,14 @@ SELECT A.USER_ID
<select id="getPolicies" parameterType="map" resultMap="policyRow"> <select id="getPolicies" parameterType="map" resultMap="policyRow">
/* 로그인 정책 가져오기(policyMapper.getPolicies) */ /* 로그인 정책 가져오기(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 ORDER BY USER_ID

Loading…
Cancel
Save