| | |
| | | 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)); |
| | | // } |
| | | |
| | | /** |
| | | * 供需需求审核附件表 新增或修改 |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导出数据 |
| | | */ |
| | | @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); |
| | | // } |
| | | |
| | | } |