| | |
| | | import org.sxkj.fw.common.GenericConverter; |
| | | import org.sxkj.fw.common.IdParam; |
| | | import org.sxkj.fw.device.dto.FwDeviceDTO; |
| | | import org.sxkj.fw.device.dto.FwDevicePolygonQueryDTO; |
| | | import org.sxkj.fw.device.entity.FwDeviceEntity; |
| | | import org.sxkj.fw.device.excel.FwDeviceExcel; |
| | | import org.sxkj.fw.device.param.FwDevicePageParam; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 设备表 列表(多边形过滤) |
| | | */ |
| | | @PostMapping("/listByPolygons") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "列表-多边形过滤", notes = "传入isAreaSelect、areaId、status、isTrack、polygons") |
| | | public R<List<FwDeviceVO>> listByPolygons(@Valid @RequestBody FwDevicePolygonQueryDTO query) { |
| | | List<FwDeviceEntity> list = fwDeviceService.selectFwDeviceListByPolygons(query); |
| | | FwDeviceWrapper wrapper = FwDeviceWrapper.build(); |
| | | return R.data(list.stream().map(wrapper::entityVO).collect(Collectors.toList())); |
| | | } |
| | | |
| | | /** |
| | | * 设备表 自定义分页 |
| | | */ |
| | | @GetMapping("/page") |