| | |
| | | public R page(@RequestBody Map<String, Object> map) { |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<Task, BaseParam> pageParam = new PageParam<>(baseParam, Task.class); |
| | | QueryWrapper<Task> wrapper = pageParam.buildWrapper(true, "io_time"); |
| | | QueryWrapper<Task> wrapper = pageParam.buildWrapper(false, "io_time"); |
| | | if (hasCreateTimeDesc(pageParam.getOrders())) { |
| | | // wrapper.last(businessSortService.getOrderBySql(TaskStsType.class, "task_sts")); |
| | | } |
| | |
| | | public R cancel(@PathVariable Long id) { |
| | | return taskService.cancel(id, getLoginUserId()) ? R.ok("Cancel Success") : R.error("Cancel Fail"); |
| | | } |
| | | |
| | | |
| | | } |