From 5157626abbb18400b0370782ba4a7c9b2d1990ee Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Tue, 26 Sep 2023 09:40:47 +0900 Subject: [PATCH] =?UTF-8?q?selectRoadNmAdres(=EB=8F=84=EB=A1=9C=EB=AA=85?= =?UTF-8?q?=20=EC=A3=BC=EC=86=8C=20=EC=A1=B0=ED=9A=8C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sql/mapper/lvis/vehicleInfo-mapper.xml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/main/resources/sql/mapper/lvis/vehicleInfo-mapper.xml b/src/main/resources/sql/mapper/lvis/vehicleInfo-mapper.xml index 70fa341..3c0c580 100644 --- a/src/main/resources/sql/mapper/lvis/vehicleInfo-mapper.xml +++ b/src/main/resources/sql/mapper/lvis/vehicleInfo-mapper.xml @@ -189,11 +189,19 @@ SELECT PRYE +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} /* vehicleInfoMapper.insertBasicInfo(자동차 기본사항 조회 로그 등록) */