| | |
| | | /** |
| | | * 飞手表 分页 |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "分页", notes = "传入gdFlyer") |
| | | public R<IPage<GdFlyerVO>> list(@ApiIgnore @RequestParam Map<String, Object> gdFlyer, Query query) { |
| | | IPage<GdFlyerEntity> pages = gdFlyerService.page(Condition.getPage(query), Condition.getQueryWrapper(gdFlyer, GdFlyerEntity.class)); |
| | | return R.data(GdFlyerWrapper.build().pageVO(pages)); |
| | | } |
| | | // @GetMapping("/list") |
| | | // @ApiOperationSupport(order = 2) |
| | | // @ApiOperation(value = "分页", notes = "传入gdFlyer") |
| | | // public R<IPage<GdFlyerVO>> list(@ApiIgnore @RequestParam Map<String, Object> gdFlyer, Query query) { |
| | | // IPage<GdFlyerEntity> pages = gdFlyerService.page(Condition.getPage(query), Condition.getQueryWrapper(gdFlyer, GdFlyerEntity.class)); |
| | | // return R.data(GdFlyerWrapper.build().pageVO(pages)); |
| | | // } |
| | | |
| | | /** |
| | | * 飞手表 自定义分页 |
| | |
| | | /** |
| | | * 飞手表 新增 |
| | | */ |
| | | @PostMapping("/save") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "新增", notes = "传入gdFlyer") |
| | | public R save(@Valid @RequestBody GdFlyerEntity gdFlyer) { |
| | | return R.status(gdFlyerService.save(gdFlyer)); |
| | | } |
| | | // @PostMapping("/save") |
| | | // @ApiOperationSupport(order = 4) |
| | | // @ApiOperation(value = "新增", notes = "传入gdFlyer") |
| | | // public R save(@Valid @RequestBody GdFlyerEntity gdFlyer) { |
| | | // return R.status(gdFlyerService.save(gdFlyer)); |
| | | // } |
| | | |
| | | /** |
| | | * 飞手表 修改 |
| | | */ |
| | | @PostMapping("/update") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "修改", notes = "传入gdFlyer") |
| | | public R update(@Valid @RequestBody GdFlyerEntity gdFlyer) { |
| | | return R.status(gdFlyerService.updateById(gdFlyer)); |
| | | } |
| | | // @PostMapping("/update") |
| | | // @ApiOperationSupport(order = 5) |
| | | // @ApiOperation(value = "修改", notes = "传入gdFlyer") |
| | | // public R update(@Valid @RequestBody GdFlyerEntity gdFlyer) { |
| | | // return R.status(gdFlyerService.updateById(gdFlyer)); |
| | | // } |
| | | |
| | | /** |
| | | * 飞手表 新增或修改 |
| | |
| | | @GetMapping("/export-gdFlyer") |
| | | @ApiOperationSupport(order = 9) |
| | | @ApiOperation(value = "导出数据", notes = "传入gdFlyer") |
| | | @ApiIgnore |
| | | public void exportGdFlyer(@ApiIgnore @RequestParam Map<String, Object> gdFlyer, BladeUser bladeUser, HttpServletResponse response) { |
| | | QueryWrapper<GdFlyerEntity> queryWrapper = Condition.getQueryWrapper(gdFlyer, GdFlyerEntity.class); |
| | | //if (!AuthUtil.isAdministrator()) { |