| | |
| | | GdManageDeviceEntity detail = gdManageDeviceService.getOne(Condition.getQueryWrapper(gdManageDevice)); |
| | | return R.data(GdManageDeviceWrapper.build().entityVO(detail)); |
| | | } |
| | | /** |
| | | * 设备信息 分页 |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "分页", notes = "传入gdManageDevice") |
| | | public R<IPage<GdManageDeviceVO>> list(@ApiIgnore @RequestParam Map<String, Object> gdManageDevice, Query query) { |
| | | IPage<GdManageDeviceEntity> pages = gdManageDeviceService.page(Condition.getPage(query), Condition.getQueryWrapper(gdManageDevice, GdManageDeviceEntity.class)); |
| | | return R.data(GdManageDeviceWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | | /** |
| | | * 设备信息 自定义分页 |
| | |
| | | public R<IPage<GdManageDeviceVO>> page(GdManageDeviceVO gdManageDevice, Query query) { |
| | | IPage<GdManageDeviceVO> pages = gdManageDeviceService.selectGdManageDevicePage(Condition.getPage(query), gdManageDevice); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 设备信息 新增 |
| | | */ |
| | | @PostMapping("/save") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "新增", notes = "传入gdManageDevice") |
| | | public R save(@Valid @RequestBody GdManageDeviceEntity gdManageDevice) { |
| | | return R.status(gdManageDeviceService.save(gdManageDevice)); |
| | | } |
| | | |
| | | /** |
| | | * 设备信息 修改 |
| | | */ |
| | | @PostMapping("/update") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "修改", notes = "传入gdManageDevice") |
| | | public R update(@Valid @RequestBody GdManageDeviceEntity gdManageDevice) { |
| | | return R.status(gdManageDeviceService.updateById(gdManageDevice)); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @GetMapping("/export-gdManageDevice") |
| | | @ApiOperationSupport(order = 9) |
| | | @ApiIgnore |
| | | @ApiOperation(value = "导出数据", notes = "传入gdManageDevice") |
| | | public void exportGdManageDevice(@ApiIgnore @RequestParam Map<String, Object> gdManageDevice, BladeUser bladeUser, HttpServletResponse response) { |
| | | QueryWrapper<GdManageDeviceEntity> queryWrapper = Condition.getQueryWrapper(gdManageDevice, GdManageDeviceEntity.class); |