| | |
| | | if(carmeraListVOList!=null && carmeraListVOList.size()>0){ |
| | | for(PageRegionInfoResponse p : allList){ |
| | | for(CarmeraListVO c : carmeraListVOList){ |
| | | if(StringUtils.equals(p.getIndexCode(),c.getReginCode()) |
| | | && (StringUtils.contains(c.getName(),name) ||StringUtils.isBlank(name))){ |
| | | if(p.getCarmeraList()==null){ |
| | | p.setCarmeraList(new ArrayList<>()); |
| | | if(StringUtils.equals(p.getIndexCode(),c.getReginCode()) ){ |
| | | if(p.getDeviceList()==null){ |
| | | p.setDeviceList(new ArrayList<>()); |
| | | } |
| | | p.getCarmeraList().add(c); |
| | | p.getDeviceList().add(c); |
| | | } |
| | | } |
| | | } |
| | |
| | | if(carmeraListVOList!=null && carmeraListVOList.size()>0){ |
| | | for(PageRegionInfoResponse p : allList){ |
| | | for(CarmeraListVO c : carmeraListVOList){ |
| | | if(StringUtils.equals(p.getIndexCode(),c.getReginCode()) |
| | | && (StringUtils.contains(c.getName(),name) ||StringUtils.isBlank(name))){ |
| | | if(p.getCarmeraList()==null){ |
| | | p.setCarmeraList(new ArrayList<>()); |
| | | if(StringUtils.equals(p.getIndexCode(),c.getReginCode())){ |
| | | if(p.getSensorList()==null){ |
| | | p.setSensorList(new ArrayList<>()); |
| | | } |
| | | p.getCarmeraList().add(c); |
| | | p.getSensorList().add(c); |
| | | } |
| | | } |
| | | } |