쿼리 수정

main
이범준 2 months ago
parent 7d6e574f47
commit 89defbf1e4

@ -18,6 +18,12 @@ public interface CrdnStngMapper extends AbstractMapper {
*/
String selectBasicAmt(CrdnQuery query);
/** .<br />
* @param stdgCd
* @return
*/
String selectStdgNm(String stdgCd);
/** .<br />
* @param sggCd
* @return

@ -21,6 +21,16 @@ SELECT AMT
</if>
</select>
<select id="selectStdgNm" parameterType="string" resultType="string">
/* 법정동코드 조회(crdnStngMapper.selectStdgNm) */
SELECT CONCAT(A.EMD_NM,
CASE WHEN A.LI_NM = ''
THEN ''
ELSE CONCAT(' ', A.LI_NM)
END) AS STDG_NM
FROM TB_STDG A
WHERE STDG_CD = #{stdgCd}
</select>
<select id="selectStdgNmList" parameterType="string" resultType="string">
/* 법정동코드 목록 조회(crdnStngMapper.selectStdgNmList) */
@ -46,7 +56,4 @@ SELECT STDG_CD
AND SUBSTR(STDG_CD,1,5) = #{sggCd}
</select>
</mapper>
Loading…
Cancel
Save