selectRoadNmAdres(...) 수정

master
mjkhan21 10 months ago
parent 660f7c359a
commit 3681214b4d

@ -41,7 +41,7 @@ public interface VehicleInfoMapper extends AbstractMapper {
* </ul>
* @return
*/
DataObject selectRoadNmAdres(Map<String, Object> params);
List<DataObject> selectRoadNmAdres(Map<String, Object> 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<DataObject> addrs = selectRoadNmAdres(params()
.set("roadNmCd", roadNmCd)
.set("bmno", bmno)
.set("bsno", bsno)
);
return !addrs.isEmpty() ? addrs.get(0) : null;
}
/** ( ) .

Loading…
Cancel
Save