吉安感知网项目-后端
linwei
2026-01-28 9032f502b99fa1e6db8d2c7ead3a4f7a86c80189
设备查询优化
3 files modified
37 ■■■■ changed files
drone-service/drone-gd/src/main/java/org/sxkj/gd/orderdata/controller/GdSupplyDemandController.java 30 ●●●●● patch | view | raw | blame | history
drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/mapper/GdManageDeviceMapper.xml 1 ●●●● patch | view | raw | blame | history
drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/vo/GdManageDeviceVO.java 6 ●●●●● patch | view | raw | blame | history
drone-service/drone-gd/src/main/java/org/sxkj/gd/orderdata/controller/GdSupplyDemandController.java
@@ -67,16 +67,6 @@
        GdSupplyDemandEntity detail = gdSupplyDemandService.detailSupplyDemand(gdSupplyDemand);
        return R.data(GdSupplyDemandWrapper.build().entityVO(detail));
    }
//    /**
//     * 供需需求信息表 分页
//     */
//    @GetMapping("/list")
//    @ApiOperationSupport(order = 2)
//    @ApiOperation(value = "分页", notes = "传入gdSupplyDemand")
//    public R<IPage<GdSupplyDemandVO>> list(GdSupplyDemandDTO gdSupplyDemand, Query query) {
//        IPage<GdSupplyDemandEntity> pages = gdSupplyDemandService.selectGdSupplyDemandList(Condition.getPage(query), gdSupplyDemand);
//        return R.data(GdSupplyDemandWrapper.build().pageVO(pages));
//    }
    /**
     * 供需需求信息表 自定义分页
@@ -88,26 +78,6 @@
        IPage<GdSupplyDemandVO> pages = gdSupplyDemandService.selectGdSupplyDemandPage(Condition.getPage(query), gdSupplyDemand);
        return R.data(pages);
    }
//    /**
//     * 供需需求信息表 新增
//     */
//    @PostMapping("/save")
//    @ApiOperationSupport(order = 4)
//    @ApiOperation(value = "新增", notes = "传入gdSupplyDemand")
//    public R save(@Valid @RequestBody GdSupplyDemandEntity gdSupplyDemand) {
//        return R.status(gdSupplyDemandService.save(gdSupplyDemand));
//    }
//    /**
//     * 供需需求信息表 修改
//     */
//    @PostMapping("/update")
//    @ApiOperationSupport(order = 5)
//    @ApiOperation(value = "修改", notes = "传入gdSupplyDemand")
//    public R update(@Valid @RequestBody GdSupplyDemandEntity gdSupplyDemand) {
//        return R.status(gdSupplyDemandService.updateById(gdSupplyDemand));
//    }
    /**
     * 供需需求信息表 新增或修改
drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/mapper/GdManageDeviceMapper.xml
@@ -28,6 +28,7 @@
            md.longitude,
            md.latitude,
            md.location,
            md.device_type,
            bd.dept_name as device_dept_name
        from
            ja_gd_manage_device md
drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/vo/GdManageDeviceVO.java
@@ -96,4 +96,10 @@
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 设备类型(0机场,1无人机)
     */
    @ApiModelProperty(value = "设备类型(0机场,1无人机)")
    private Integer deviceType;
}