| | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | @Api(tags = "PDA获取信息接口") |
| | | @RequestMapping("/pda") |
| | |
| | | PageParam<BasStation, BaseParam> page = basStationService.page(pageParam, pageParam.buildWrapper(true)); |
| | | for (BasStation station : page.getRecords()) { |
| | | if (!Cools.isEmpty(station.getCrossZoneArea())) { |
| | | List<Long> longs1 = JSONObject.parseArray(station.getCrossZoneArea(), Long.class); |
| | | List<Long> longs1 = station.getCrossZoneArea().stream() |
| | | .map(Integer::longValue) |
| | | .collect(Collectors.toList()); |
| | | station.setAreaIds(longs1); |
| | | } |
| | | if (!Cools.isEmpty(station.getContainerType())) { |
| | | List<Long> longs1 = JSONObject.parseArray(station.getContainerType(), Long.class); |
| | | List<Long> longs1 = station.getContainerType().stream() |
| | | .map(Integer::longValue) |
| | | .collect(Collectors.toList()); |
| | | station.setContainerTypes(longs1); |
| | | } |
| | | |