selectRoadNmAdres(도로명 주소 조회)

master
mjkhan21 1 year ago
parent 7430d9056c
commit 5157626abb

@ -189,9 +189,17 @@ SELECT PRYE <!-- 연식 -->
</where></select>
<select id="selectRoadNmAdres" parameterType="map" resultType="dataobject">/* vehicleInfoMapper.selectRoadNmAdres(도로명 주소 조회) */
SELECT CONCAT(CTPV_NM, ' ', SGG_NM, ' ', ROAD_NM, ' ', BMNO, '-', BSNO) ROAD_NM_ADRES, ZIP
FROM TB_ROAD_ADDR
WHERE ROAD_NM_CD = #{roadNmCd}
SELECT CASE WHEN LENGTH(STDG_LI_NM) > 0 THEN
CASE WHEN BSNO IS NULL OR BSNO = 0 THEN CONCAT(CTPV_NM, ' ', SGG_NM, ' ', STDG_NM, ' ', ROAD_NM, ' ', BMNO)
ELSE CONCAT(CTPV_NM, ' ', SGG_NM, ' ', STDG_NM, ' ', ROAD_NM, ' ', BMNO, '-', BSNO)
END
ELSE CASE WHEN BSNO IS NULL OR BSNO = 0 THEN CONCAT(CTPV_NM, ' ', SGG_NM, ' ', ROAD_NM, ' ', BMNO)
ELSE CONCAT(CTPV_NM, ' ', SGG_NM, ' ', ROAD_NM, ' ', BMNO, '-', BSNO)
END
END ROAD_NM_ADRES
, ZIP
FROM TB_ROAD_ADDR
WHERE ROAD_NM_CD = #{roadNmCd}
AND BMNO = #{bmno}
AND BSNO = #{bsno}</select>

Loading…
Cancel
Save