| | |
| | | GdDataObjectionAttachmentEntity detail = gdDataObjectionAttachmentService.getOne(Condition.getQueryWrapper(gdDataObjectionAttachment)); |
| | | return R.data(GdDataObjectionAttachmentWrapper.build().entityVO(detail)); |
| | | } |
| | | /** |
| | | * 数据异议申请附件表 分页 |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "分页", notes = "传入gdDataObjectionAttachment") |
| | | public R<IPage<GdDataObjectionAttachmentVO>> list(@ApiIgnore @RequestParam Map<String, Object> gdDataObjectionAttachment, Query query) { |
| | | IPage<GdDataObjectionAttachmentEntity> pages = gdDataObjectionAttachmentService.page(Condition.getPage(query), Condition.getQueryWrapper(gdDataObjectionAttachment, GdDataObjectionAttachmentEntity.class)); |
| | | return R.data(GdDataObjectionAttachmentWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 数据异议申请附件表 自定义分页 |
| | |
| | | return R.data(pages); |
| | | } |
| | | |
| | | // /** |
| | | // * 数据异议申请附件表 新增 |
| | | // */ |
| | | // @PostMapping("/save") |
| | | // @ApiOperationSupport(order = 4) |
| | | // @ApiOperation(value = "新增", notes = "传入gdDataObjectionAttachment") |
| | | // public R save(@Valid @RequestBody GdDataObjectionAttachmentEntity gdDataObjectionAttachment) { |
| | | // return R.status(gdDataObjectionAttachmentService.save(gdDataObjectionAttachment)); |
| | | // } |
| | | |
| | | // /** |
| | | // * 数据异议申请附件表 修改 |
| | | // */ |
| | | // @PostMapping("/update") |
| | | // @ApiOperationSupport(order = 5) |
| | | // @ApiOperation(value = "修改", notes = "传入gdDataObjectionAttachment") |
| | | // public R update(@Valid @RequestBody GdDataObjectionAttachmentEntity gdDataObjectionAttachment) { |
| | | // return R.status(gdDataObjectionAttachmentService.updateById(gdDataObjectionAttachment)); |
| | | // } |
| | | |
| | | /** |
| | | * 数据异议申请附件表 新增或修改 |
| | |
| | | } |
| | | |
| | | |
| | | // /** |
| | | // * 导出数据 |
| | | // */ |
| | | // @GetMapping("/export-gdDataObjectionAttachment") |
| | | // @ApiOperationSupport(order = 9) |
| | | // @ApiOperation(value = "导出数据", notes = "传入gdDataObjectionAttachment") |
| | | // public void exportGdDataObjectionAttachment(@ApiIgnore @RequestParam Map<String, Object> gdDataObjectionAttachment, BladeUser bladeUser, HttpServletResponse response) { |
| | | // QueryWrapper<GdDataObjectionAttachmentEntity> queryWrapper = Condition.getQueryWrapper(gdDataObjectionAttachment, GdDataObjectionAttachmentEntity.class); |
| | | //if (!AuthUtil.isAdministrator()) { |
| | | // queryWrapper.lambda().eq(GdDataObjectionAttachment::getTenantId, bladeUser.getTenantId()); |
| | | //} |
| | | // queryWrapper.lambda().eq(GdDataObjectionAttachmentEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
| | | // List<GdDataObjectionAttachmentExcel> list = gdDataObjectionAttachmentService.exportGdDataObjectionAttachment(queryWrapper); |
| | | // ExcelUtil.export(response, "数据异议申请附件表数据" + DateUtil.time(), "数据异议申请附件表数据表", list, GdDataObjectionAttachmentExcel.class); |
| | | // } |
| | | |
| | | } |