吉安感知网项目-后端
linwei
2026-01-22 1510366fa12fafd5197ebcd8d7fbc45d2383218d
drone-service/drone-gd/src/main/java/org/sxkj/gd/orderdata/controller/GdSupplyDemandAuditAttachmentController.java
@@ -60,25 +60,35 @@
   private final IGdSupplyDemandAuditAttachmentService gdSupplyDemandAuditAttachmentService;
   /**
    * 供需需求审核附件表 列表
    */
   @GetMapping("/list")
   @ApiOperationSupport(order = 1)
   @ApiOperation(value = "列表", notes = "传入demandId")
   public R<List<GdSupplyDemandAuditAttachmentVO>> list(@ApiParam(value = "供需需求ID", required = true) @RequestParam Long demandId) {
      return R.data(gdSupplyDemandAuditAttachmentService.listSupplyDemandAuditAttachments(demandId));
   }
   /**
    * 供需需求审核附件表 详情
    */
   @GetMapping("/detail")
   @ApiOperationSupport(order = 1)
   @ApiOperation(value = "详情", notes = "传入gdSupplyDemandAuditAttachment")
   public R<GdSupplyDemandAuditAttachmentVO> detail(GdSupplyDemandAuditAttachmentEntity gdSupplyDemandAuditAttachment) {
      GdSupplyDemandAuditAttachmentEntity detail = gdSupplyDemandAuditAttachmentService.getOne(Condition.getQueryWrapper(gdSupplyDemandAuditAttachment));
   @ApiOperationSupport(order = 2)
   @ApiOperation(value = "详情", notes = "传入id")
   public R<GdSupplyDemandAuditAttachmentVO> detail(@ApiParam(value = "主键ID", required = true) @RequestParam Long id) {
      GdSupplyDemandAuditAttachmentEntity detail = gdSupplyDemandAuditAttachmentService.getById(id);
      return R.data(GdSupplyDemandAuditAttachmentWrapper.build().entityVO(detail));
   }
   /**
    * 供需需求审核附件表 分页
    */
   @GetMapping("/list")
   @ApiOperationSupport(order = 2)
   @ApiOperation(value = "分页", notes = "传入gdSupplyDemandAuditAttachment")
   public R<IPage<GdSupplyDemandAuditAttachmentVO>> list(@ApiIgnore @RequestParam Map<String, Object> gdSupplyDemandAuditAttachment, Query query) {
      IPage<GdSupplyDemandAuditAttachmentEntity> pages = gdSupplyDemandAuditAttachmentService.page(Condition.getPage(query), Condition.getQueryWrapper(gdSupplyDemandAuditAttachment, GdSupplyDemandAuditAttachmentEntity.class));
      return R.data(GdSupplyDemandAuditAttachmentWrapper.build().pageVO(pages));
   }
//   /**
//    * 供需需求审核附件表 分页
//    */
//   @GetMapping("/list")
//   @ApiOperationSupport(order = 2)
//   @ApiOperation(value = "分页", notes = "传入gdSupplyDemandAuditAttachment")
//   public R<IPage<GdSupplyDemandAuditAttachmentVO>> list(@ApiIgnore @RequestParam Map<String, Object> gdSupplyDemandAuditAttachment, Query query) {
//      IPage<GdSupplyDemandAuditAttachmentEntity> pages = gdSupplyDemandAuditAttachmentService.page(Condition.getPage(query), Condition.getQueryWrapper(gdSupplyDemandAuditAttachment, GdSupplyDemandAuditAttachmentEntity.class));
//      return R.data(GdSupplyDemandAuditAttachmentWrapper.build().pageVO(pages));
//   }
   /**
    * 供需需求审核附件表 自定义分页
@@ -91,25 +101,25 @@
      return R.data(pages);
   }
   /**
    * 供需需求审核附件表 新增
    */
   @PostMapping("/save")
   @ApiOperationSupport(order = 4)
   @ApiOperation(value = "新增", notes = "传入gdSupplyDemandAuditAttachment")
   public R save(@Valid @RequestBody GdSupplyDemandAuditAttachmentEntity gdSupplyDemandAuditAttachment) {
      return R.status(gdSupplyDemandAuditAttachmentService.save(gdSupplyDemandAuditAttachment));
   }
//   /**
//    * 供需需求审核附件表 新增
//    */
//   @PostMapping("/save")
//   @ApiOperationSupport(order = 4)
//   @ApiOperation(value = "新增", notes = "传入gdSupplyDemandAuditAttachment")
//   public R save(@Valid @RequestBody GdSupplyDemandAuditAttachmentEntity gdSupplyDemandAuditAttachment) {
//      return R.status(gdSupplyDemandAuditAttachmentService.save(gdSupplyDemandAuditAttachment));
//   }
   /**
    * 供需需求审核附件表 修改
    */
   @PostMapping("/update")
   @ApiOperationSupport(order = 5)
   @ApiOperation(value = "修改", notes = "传入gdSupplyDemandAuditAttachment")
   public R update(@Valid @RequestBody GdSupplyDemandAuditAttachmentEntity gdSupplyDemandAuditAttachment) {
      return R.status(gdSupplyDemandAuditAttachmentService.updateById(gdSupplyDemandAuditAttachment));
   }
//   /**
//    * 供需需求审核附件表 修改
//    */
//   @PostMapping("/update")
//   @ApiOperationSupport(order = 5)
//   @ApiOperation(value = "修改", notes = "传入gdSupplyDemandAuditAttachment")
//   public R update(@Valid @RequestBody GdSupplyDemandAuditAttachmentEntity gdSupplyDemandAuditAttachment) {
//      return R.status(gdSupplyDemandAuditAttachmentService.updateById(gdSupplyDemandAuditAttachment));
//   }
   /**
    * 供需需求审核附件表 新增或修改
@@ -132,20 +142,20 @@
   }
   /**
    * 导出数据
    */
   @GetMapping("/export-gdSupplyDemandAuditAttachment")
   @ApiOperationSupport(order = 9)
   @ApiOperation(value = "导出数据", notes = "传入gdSupplyDemandAuditAttachment")
   public void exportGdSupplyDemandAuditAttachment(@ApiIgnore @RequestParam Map<String, Object> gdSupplyDemandAuditAttachment, BladeUser bladeUser, HttpServletResponse response) {
      QueryWrapper<GdSupplyDemandAuditAttachmentEntity> queryWrapper = Condition.getQueryWrapper(gdSupplyDemandAuditAttachment, GdSupplyDemandAuditAttachmentEntity.class);
//   /**
//    * 导出数据
//    */
//   @GetMapping("/export-gdSupplyDemandAuditAttachment")
//   @ApiOperationSupport(order = 9)
//   @ApiOperation(value = "导出数据", notes = "传入gdSupplyDemandAuditAttachment")
//   public void exportGdSupplyDemandAuditAttachment(@ApiIgnore @RequestParam Map<String, Object> gdSupplyDemandAuditAttachment, BladeUser bladeUser, HttpServletResponse response) {
//      QueryWrapper<GdSupplyDemandAuditAttachmentEntity> queryWrapper = Condition.getQueryWrapper(gdSupplyDemandAuditAttachment, GdSupplyDemandAuditAttachmentEntity.class);
      //if (!AuthUtil.isAdministrator()) {
      //   queryWrapper.lambda().eq(GdSupplyDemandAuditAttachment::getTenantId, bladeUser.getTenantId());
      //}
      queryWrapper.lambda().eq(GdSupplyDemandAuditAttachmentEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
      List<GdSupplyDemandAuditAttachmentExcel> list = gdSupplyDemandAuditAttachmentService.exportGdSupplyDemandAuditAttachment(queryWrapper);
      ExcelUtil.export(response, "供需需求审核附件表数据" + DateUtil.time(), "供需需求审核附件表数据表", list, GdSupplyDemandAuditAttachmentExcel.class);
   }
//      queryWrapper.lambda().eq(GdSupplyDemandAuditAttachmentEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
//      List<GdSupplyDemandAuditAttachmentExcel> list = gdSupplyDemandAuditAttachmentService.exportGdSupplyDemandAuditAttachment(queryWrapper);
//      ExcelUtil.export(response, "供需需求审核附件表数据" + DateUtil.time(), "供需需求审核附件表数据表", list, GdSupplyDemandAuditAttachmentExcel.class);
//   }
}