吉安感知网项目-后端
rain
2026-01-17 6654ce7a8e75581e5cf800831bede765cd006fbb
drone-service/drone-gd/src/main/java/org/sxkj/gd/orderdata/controller/GdSupplyDemandAuditController.java
@@ -91,25 +91,25 @@
      return R.data(pages);
   }
   /**
    * 供需需求审核记录表 新增
    */
   @PostMapping("/save")
   @ApiOperationSupport(order = 4)
   @ApiOperation(value = "新增", notes = "传入gdSupplyDemandAudit")
   public R save(@Valid @RequestBody GdSupplyDemandAuditEntity gdSupplyDemandAudit) {
      return R.status(gdSupplyDemandAuditService.save(gdSupplyDemandAudit));
   }
//   /**
//    * 供需需求审核记录表 新增
//    */
//   @PostMapping("/save")
//   @ApiOperationSupport(order = 4)
//   @ApiOperation(value = "新增", notes = "传入gdSupplyDemandAudit")
//   public R save(@Valid @RequestBody GdSupplyDemandAuditEntity gdSupplyDemandAudit) {
//      return R.status(gdSupplyDemandAuditService.save(gdSupplyDemandAudit));
//   }
   /**
    * 供需需求审核记录表 修改
    */
   @PostMapping("/update")
   @ApiOperationSupport(order = 5)
   @ApiOperation(value = "修改", notes = "传入gdSupplyDemandAudit")
   public R update(@Valid @RequestBody GdSupplyDemandAuditEntity gdSupplyDemandAudit) {
      return R.status(gdSupplyDemandAuditService.updateById(gdSupplyDemandAudit));
   }
//   /**
//    * 供需需求审核记录表 修改
//    */
//   @PostMapping("/update")
//   @ApiOperationSupport(order = 5)
//   @ApiOperation(value = "修改", notes = "传入gdSupplyDemandAudit")
//   public R update(@Valid @RequestBody GdSupplyDemandAuditEntity gdSupplyDemandAudit) {
//      return R.status(gdSupplyDemandAuditService.updateById(gdSupplyDemandAudit));
//   }
   /**
    * 供需需求审核记录表 新增或修改
@@ -132,20 +132,20 @@
   }
   /**
    * 导出数据
    */
   @GetMapping("/export-gdSupplyDemandAudit")
   @ApiOperationSupport(order = 9)
   @ApiOperation(value = "导出数据", notes = "传入gdSupplyDemandAudit")
   public void exportGdSupplyDemandAudit(@ApiIgnore @RequestParam Map<String, Object> gdSupplyDemandAudit, BladeUser bladeUser, HttpServletResponse response) {
      QueryWrapper<GdSupplyDemandAuditEntity> queryWrapper = Condition.getQueryWrapper(gdSupplyDemandAudit, GdSupplyDemandAuditEntity.class);
//   /**
//    * 导出数据
//    */
//   @GetMapping("/export-gdSupplyDemandAudit")
//   @ApiOperationSupport(order = 9)
//   @ApiOperation(value = "导出数据", notes = "传入gdSupplyDemandAudit")
//   public void exportGdSupplyDemandAudit(@ApiIgnore @RequestParam Map<String, Object> gdSupplyDemandAudit, BladeUser bladeUser, HttpServletResponse response) {
//      QueryWrapper<GdSupplyDemandAuditEntity> queryWrapper = Condition.getQueryWrapper(gdSupplyDemandAudit, GdSupplyDemandAuditEntity.class);
      //if (!AuthUtil.isAdministrator()) {
      //   queryWrapper.lambda().eq(GdSupplyDemandAudit::getTenantId, bladeUser.getTenantId());
      //}
      queryWrapper.lambda().eq(GdSupplyDemandAuditEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
      List<GdSupplyDemandAuditExcel> list = gdSupplyDemandAuditService.exportGdSupplyDemandAudit(queryWrapper);
      ExcelUtil.export(response, "供需需求审核记录表数据" + DateUtil.time(), "供需需求审核记录表数据表", list, GdSupplyDemandAuditExcel.class);
   }
//      queryWrapper.lambda().eq(GdSupplyDemandAuditEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
//      List<GdSupplyDemandAuditExcel> list = gdSupplyDemandAuditService.exportGdSupplyDemandAudit(queryWrapper);
//      ExcelUtil.export(response, "供需需求审核记录表数据" + DateUtil.time(), "供需需求审核记录表数据表", list, GdSupplyDemandAuditExcel.class);
//   }
}