吉安感知网项目-后端
linwei
2026-01-17 f016dabea9817bd3f1bbfd2e96ab6337d2175aa2
设备管理
1 files modified
31 ■■■■■ changed files
drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/controller/GdManageDeviceController.java 31 ●●●●● patch | view | raw | blame | history
drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/controller/GdManageDeviceController.java
@@ -69,16 +69,6 @@
        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));
    }
    /**
     * 设备信息 自定义分页
@@ -89,26 +79,6 @@
    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));
    }
    /**
@@ -137,6 +107,7 @@
     */
    @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);