| | |
| | | import org.sxkj.gd.workorder.dto.GdManageDeviceDTO; |
| | | import org.sxkj.gd.workorder.entity.GdManageDeviceEntity; |
| | | import org.sxkj.gd.workorder.excel.GdManageDeviceExcel; |
| | | import org.sxkj.gd.workorder.param.GdManageDevicePageParam; |
| | | import org.sxkj.gd.workorder.service.IGdManageDeviceService; |
| | | import org.sxkj.gd.workorder.vo.GdManageDeviceVO; |
| | | import org.sxkj.gd.workorder.wrapper.GdManageDeviceWrapper; |
| | |
| | | @GetMapping("/list") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "不分页", notes = "传入gdManageDevice") |
| | | public R<List<GdManageDeviceVO>> page(GdManageDeviceVO gdManageDevice) { |
| | | public R<List<GdManageDeviceVO>> page(GdManageDevicePageParam gdManageDevice) { |
| | | List<GdManageDeviceVO> pages = gdManageDeviceService.selectGdManageDevice(gdManageDevice); |
| | | return R.data(pages); |
| | | } |
| | |
| | | @GetMapping("/page") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = "传入gdManageDevice") |
| | | public R<IPage<GdManageDeviceVO>> page(GdManageDeviceVO gdManageDevice, Query query) { |
| | | public R<IPage<GdManageDeviceVO>> page(GdManageDevicePageParam gdManageDevice, Query query) { |
| | | IPage<GdManageDeviceVO> pages = gdManageDeviceService.selectGdManageDevicePage(Condition.getPage(query), gdManageDevice); |
| | | return R.data(pages); |
| | | } |
| | |
| | | return R.status(gdManageDeviceService.deleteLogic(Func.toLongList(ids))); |
| | | } |
| | | |
| | | /** |
| | | * 同步星图设备(测试接口) |
| | | */ |
| | | @PostMapping("/sync-xingtu") |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "同步星图设备(测试)", notes = "同步无人机和机巢到设备表") |
| | | public R syncXingtuDevice() throws Exception { |
| | | int count = gdManageDeviceService.syncXingtuDevice(); |
| | | return R.data(count); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导出数据 |