Petition.Violation.getVehicleNoDatetimes() 수정

master
mjkhan21 1 year ago
parent c369a4dc4c
commit 1d48c425a9

@ -708,10 +708,10 @@ public class Petition extends AbstractEntity {
.replaceAll("[: /]", "")
.split(",");
HashMap<String, String> info = new HashMap<>();
info.put("datetime", found[0]);
info.put("vehicleNo", found.length > 1 ? found[1] : "");
list.add(info);
list.add(Map.of(
"datetime", found[0],
"vehicleNo", found.length > 1 ? found[1] : ""
));
}
return list;
}
@ -816,11 +816,4 @@ public class Petition extends AbstractEntity {
return pattern.matcher(str);
}
}
public static void main(String[] args) {
String[] locations = {"경기도 파주시 금촌동 798", "경기도 파주시 문산읍 당동리 892", "경기도 파주시 월롱면 덕은리 1300"};
Violation v = new Violation();
for (String loc: locations)
System.out.println(v.getDong(loc));
}
}
Loading…
Cancel
Save