From 3681214b4d1f63828e999729bdf28e5e8710da4c Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Thu, 25 Jan 2024 10:15:31 +0900 Subject: [PATCH] =?UTF-8?q?selectRoadNmAdres(...)=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cokr/xit/interfaces/lvis/dao/VehicleInfoMapper.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/cokr/xit/interfaces/lvis/dao/VehicleInfoMapper.java b/src/main/java/cokr/xit/interfaces/lvis/dao/VehicleInfoMapper.java index bee9a68..9660d8a 100644 --- a/src/main/java/cokr/xit/interfaces/lvis/dao/VehicleInfoMapper.java +++ b/src/main/java/cokr/xit/interfaces/lvis/dao/VehicleInfoMapper.java @@ -41,7 +41,7 @@ public interface VehicleInfoMapper extends AbstractMapper { * * @return 도로명 주소 */ - DataObject selectRoadNmAdres(Map params); + List selectRoadNmAdres(Map params); /**도로명 주소를 조회한다. * @param roadNmCd 도로명 코드 @@ -50,11 +50,12 @@ public interface VehicleInfoMapper extends AbstractMapper { * @return 도로명 주소 */ default DataObject selectRoadNmAdres(String roadNmCd, String bmno, String bsno) { - return selectRoadNmAdres(params() + List addrs = selectRoadNmAdres(params() .set("roadNmCd", roadNmCd) .set("bmno", bmno) .set("bsno", bsno) ); + return !addrs.isEmpty() ? addrs.get(0) : null; } /**자동차 기본사항(연료제원 포함)을 반환한다.