| | |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 数据异议申请表 新增 |
| | | */ |
| | | @PostMapping("/save") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "新增", notes = "传入gdDataObjection") |
| | | public R save(@Valid @RequestBody GdDataObjectionEntity gdDataObjection) { |
| | | return R.status(gdDataObjectionService.save(gdDataObjection)); |
| | | } |
| | | // /** |
| | | // * 数据异议申请表 新增 |
| | | // */ |
| | | // @PostMapping("/save") |
| | | // @ApiOperationSupport(order = 4) |
| | | // @ApiOperation(value = "新增", notes = "传入gdDataObjection") |
| | | // public R save(@Valid @RequestBody GdDataObjectionEntity gdDataObjection) { |
| | | // return R.status(gdDataObjectionService.save(gdDataObjection)); |
| | | // } |
| | | |
| | | /** |
| | | * 数据异议申请表 修改 |
| | | */ |
| | | @PostMapping("/update") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "修改", notes = "传入gdDataObjection") |
| | | public R update(@Valid @RequestBody GdDataObjectionEntity gdDataObjection) { |
| | | return R.status(gdDataObjectionService.updateById(gdDataObjection)); |
| | | } |
| | | // /** |
| | | // * 数据异议申请表 修改 |
| | | // */ |
| | | // @PostMapping("/update") |
| | | // @ApiOperationSupport(order = 5) |
| | | // @ApiOperation(value = "修改", notes = "传入gdDataObjection") |
| | | // public R update(@Valid @RequestBody GdDataObjectionEntity gdDataObjection) { |
| | | // return R.status(gdDataObjectionService.updateById(gdDataObjection)); |
| | | // } |
| | | |
| | | /** |
| | | * 数据异议申请表 新增或修改 |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导出数据 |
| | | */ |
| | | @GetMapping("/export-gdDataObjection") |
| | | @ApiOperationSupport(order = 9) |
| | | @ApiOperation(value = "导出数据", notes = "传入gdDataObjection") |
| | | public void exportGdDataObjection(@ApiIgnore @RequestParam Map<String, Object> gdDataObjection, BladeUser bladeUser, HttpServletResponse response) { |
| | | QueryWrapper<GdDataObjectionEntity> queryWrapper = Condition.getQueryWrapper(gdDataObjection, GdDataObjectionEntity.class); |
| | | // /** |
| | | // * 导出数据 |
| | | // */ |
| | | // @GetMapping("/export-gdDataObjection") |
| | | // @ApiOperationSupport(order = 9) |
| | | // @ApiOperation(value = "导出数据", notes = "传入gdDataObjection") |
| | | // public void exportGdDataObjection(@ApiIgnore @RequestParam Map<String, Object> gdDataObjection, BladeUser bladeUser, HttpServletResponse response) { |
| | | // QueryWrapper<GdDataObjectionEntity> queryWrapper = Condition.getQueryWrapper(gdDataObjection, GdDataObjectionEntity.class); |
| | | //if (!AuthUtil.isAdministrator()) { |
| | | // queryWrapper.lambda().eq(GdDataObjection::getTenantId, bladeUser.getTenantId()); |
| | | //} |
| | | queryWrapper.lambda().eq(GdDataObjectionEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
| | | List<GdDataObjectionExcel> list = gdDataObjectionService.exportGdDataObjection(queryWrapper); |
| | | ExcelUtil.export(response, "数据异议申请表数据" + DateUtil.time(), "数据异议申请表数据表", list, GdDataObjectionExcel.class); |
| | | } |
| | | // queryWrapper.lambda().eq(GdDataObjectionEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
| | | // List<GdDataObjectionExcel> list = gdDataObjectionService.exportGdDataObjection(queryWrapper); |
| | | // ExcelUtil.export(response, "数据异议申请表数据" + DateUtil.time(), "数据异议申请表数据表", list, GdDataObjectionExcel.class); |
| | | // } |
| | | |
| | | } |