From debb7aaceb8df980899d4361cdc2f3c5c8841233 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Wed, 13 Sep 2023 15:43:31 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A0=91=EC=88=98=EA=B2=BD=EB=A1=9C=EA=B0=80?= =?UTF-8?q?=20=EC=95=88=EC=A0=84=EC=8B=A0=EB=AC=B8=EA=B3=A0=EA=B0=80=20?= =?UTF-8?q?=EC=95=84=EB=8B=8C=20=EA=B2=BD=EC=9A=B0(=EB=8B=A8=EC=86=8D?= =?UTF-8?q?=EC=9D=BC=EC=8B=9C=EC=99=80=20=EC=B0=A8=EB=9F=89=EB=B2=88?= =?UTF-8?q?=ED=98=B8=EB=A5=BC=20=EC=B6=94=EC=B6=9C=ED=95=98=EC=A7=80=20?= =?UTF-8?q?=EB=AA=BB=ED=95=9C=20=EA=B2=BD=EC=9A=B0)=EC=97=90=EB=8F=84=20?= =?UTF-8?q?=EB=8B=A8=EC=86=8D=EC=9E=90=EB=A3=8C=EA=B0=80=20=EC=9E=85?= =?UTF-8?q?=EB=A0=A5=EB=90=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/crdn/service/bean/ImportBean.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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());