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

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

@ -17,13 +17,14 @@
/* 로그인 정책 목록 조회(policyMapper.getPolicyList) */
<include refid="utility.paging-prefix"/>
SELECT A.USER_ID
, USER_NM
, IP_ADRS
, DPLCT_YN
, LIMIT_YN
, MDFR
, MDFCN_DT
FROM TB_USER A LEFT OUTER JOIN TB_LOGIN_POLICY B ON A.USER_ID = B.USER_ID
, A.USER_NM
, B.IP_ADRS
, B.DPLCT_YN
, B.LIMIT_YN
, B.MDFR
, B.MDFCN_DT
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>
<include refid="utility.orderBy" />
<include refid="utility.paging-suffix"/>
@ -31,7 +32,14 @@ SELECT A.USER_ID
<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
<if test="userIDs != null">WHERE USER_ID IN (<foreach collection="userIDs" item="userID" separator=",">#{userID}</foreach>)</if>
ORDER BY USER_ID

Loading…
Cancel
Save