| | |
| | | if(xpGeoFencingPolygons.isEmpty()){ |
| | | return new ArrayList<>(); |
| | | } |
| | | xpGeoFencingPolygons = xpGeoFencingPolygons.stream().filter(e->e.getCityCode().equals(cityCode)).collect(Collectors.toList()); |
| | | xpGeoFencingPolygons = xpGeoFencingPolygons.stream().filter(e->e.getCityCode()!=null && e.getCityCode().equals(cityCode)).collect(Collectors.toList()); |
| | | List<XpElectronicFenceVo> result = new ArrayList<>(); |
| | | List<String> fenceIds = xpGeoFencingPolygons.stream().map(XpGeoFencingPolygon::getFenceId).collect(Collectors.toList()); |
| | | if(fenceIds.isEmpty()){ |