| | |
| | | * 导出定时任务列表 |
| | | */ |
| | | @RequiresPermissions("monitor:job:export") |
| | | @Log(title = "定时任务", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysJob sysJob) |
| | | { |
| | |
| | | * 新增定时任务 |
| | | */ |
| | | @RequiresPermissions("monitor:job:add") |
| | | @Log(title = "定时任务", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SysJob job) throws SchedulerException, TaskException |
| | | { |
| | |
| | | * 修改定时任务 |
| | | */ |
| | | @RequiresPermissions("monitor:job:edit") |
| | | @Log(title = "定时任务", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SysJob job) throws SchedulerException, TaskException |
| | | { |
| | |
| | | * 定时任务状态修改 |
| | | */ |
| | | @RequiresPermissions("monitor:job:changeStatus") |
| | | @Log(title = "定时任务", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/changeStatus") |
| | | public AjaxResult changeStatus(@RequestBody SysJob job) throws SchedulerException |
| | | { |
| | |
| | | * 定时任务立即执行一次 |
| | | */ |
| | | @RequiresPermissions("monitor:job:changeStatus") |
| | | @Log(title = "定时任务", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/run") |
| | | public AjaxResult run(@RequestBody SysJob job) throws SchedulerException |
| | | { |
| | |
| | | * 删除定时任务 |
| | | */ |
| | | @RequiresPermissions("monitor:job:remove") |
| | | @Log(title = "定时任务", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{jobIds}") |
| | | public AjaxResult remove(@PathVariable Long[] jobIds) throws SchedulerException, TaskException |
| | | { |