diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/ImportBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/ImportBean.java index f3114ffc..f2b4c3d7 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/ImportBean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/ImportBean.java @@ -96,8 +96,19 @@ public class ImportBean extends AbstractComponent { .setTitle(petition.getPetiTitleV()) .setReason(petition.getPetiReasonL()); - Map>> byVehicleNo = violation.getVehicleNoDatetimes().stream() + List> vehicleNoDatetimes = violation.getVehicleNoDatetimes(); + + //민원내용으로부터 차량번호와 단속일시를 추출하지 못했을 때 + if(vehicleNoDatetimes.size() == 0) { + vehicleNoDatetimes.add(Map.of( + "datetime", petition.getPetiRegD(), + "vehicleNo", "" + )); + } + + Map>> byVehicleNo = vehicleNoDatetimes.stream() .collect(Collectors.groupingBy(map -> map.get("vehicleNo"))); //차량번호별 단속정보 + List vehicleNos = List.copyOf(byVehicleNo.keySet()); DataObject codes = importMapper.selectViolationCodes(petition.getPetiTitleV() + " " + petition.getPetiReasonL());