| | |
| | | public R page(@RequestBody Map<String, Object> map) { |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<Jam, BaseParam> pageParam = new PageParam<>(baseParam, Jam.class); |
| | | return R.ok().add(jamService.page(pageParam, pageParam.buildWrapper(true))); |
| | | return R.ok().add(jamService.page(pageParam, pageParam.buildWrapper(false, "start_time"))); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:jam:list')") |
| | |
| | | ExcelUtil.build(ExcelUtil.create(jamService.list(), Jam.class), response); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:jam:update')") |
| | | @OperationLog("Deprecate Task") |
| | | @GetMapping("/jam/deprecate/{id}") |
| | | public R deprecate(@PathVariable Long id) { |
| | | return jamService.deprecate(id, getLoginUserId()) ? R.ok("Deprecate Success") : R.error("Deprecate Fail"); |
| | | } |
| | | |
| | | } |