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