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(자동차 기본사항 조회 로그 등록) */