|
|
@@ -37,12 +37,6 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import static net.yyc.quartz.constants.QuartzEnum.*;
|
|
|
|
|
|
-/**
|
|
|
- * @author frwcloud
|
|
|
- * @date 2019-01-27 10:04:42
|
|
|
- * <p>
|
|
|
- * 定时任务管理
|
|
|
- */
|
|
|
@Slf4j
|
|
|
@RestController
|
|
|
@AllArgsConstructor
|
|
|
@@ -70,9 +64,6 @@ public class SysJobController {
|
|
|
|
|
|
/**
|
|
|
* 通过id查询定时任务
|
|
|
- *
|
|
|
- * @param id id
|
|
|
- * @return R
|
|
|
*/
|
|
|
@GetMapping("/{id}")
|
|
|
public R getById(@PathVariable("id") Integer id) {
|
|
|
@@ -81,9 +72,6 @@ public class SysJobController {
|
|
|
|
|
|
/**
|
|
|
* 新增定时任务
|
|
|
- *
|
|
|
- * @param sysJob 定时任务调度表
|
|
|
- * @return R
|
|
|
*/
|
|
|
@PostMapping
|
|
|
public R save(@RequestBody SysJob sysJob) {
|
|
|
@@ -95,9 +83,6 @@ public class SysJobController {
|
|
|
|
|
|
/**
|
|
|
* 修改定时任务
|
|
|
- *
|
|
|
- * @param sysJob 定时任务调度表
|
|
|
- * @return R
|
|
|
*/
|
|
|
@PutMapping
|
|
|
public R updateById(@RequestBody SysJob sysJob) {
|
|
|
@@ -114,9 +99,6 @@ public class SysJobController {
|
|
|
|
|
|
/**
|
|
|
* 通过id删除定时任务
|
|
|
- *
|
|
|
- * @param id id
|
|
|
- * @return R
|
|
|
*/
|
|
|
@DeleteMapping("/{id}")
|
|
|
public R removeById(@PathVariable Integer id) {
|
|
|
@@ -133,8 +115,6 @@ public class SysJobController {
|
|
|
|
|
|
/**
|
|
|
* 暂停全部定时任务
|
|
|
- *
|
|
|
- * @return
|
|
|
*/
|
|
|
@PostMapping("/shutdown-jobs")
|
|
|
public R shutdownJobs() {
|
|
|
@@ -154,8 +134,6 @@ public class SysJobController {
|
|
|
|
|
|
/**
|
|
|
* 启动全部定时任务
|
|
|
- *
|
|
|
- * @return
|
|
|
*/
|
|
|
@PostMapping("/start-jobs")
|
|
|
public R startJobs() {
|
|
|
@@ -190,9 +168,6 @@ public class SysJobController {
|
|
|
|
|
|
/**
|
|
|
* 启动定时任务
|
|
|
- *
|
|
|
- * @param jobId
|
|
|
- * @return
|
|
|
*/
|
|
|
@PostMapping("/start-job/{id}")
|
|
|
@PreAuthorize("@pms.hasPermission('job_sys_job_start_job')")
|
|
|
@@ -211,9 +186,6 @@ public class SysJobController {
|
|
|
|
|
|
/**
|
|
|
* 启动定时任务
|
|
|
- *
|
|
|
- * @param jobId
|
|
|
- * @return
|
|
|
*/
|
|
|
@PostMapping("/run-job/{id}")
|
|
|
@PreAuthorize("@pms.hasPermission('job_sys_job_run_job')")
|
|
|
@@ -225,8 +197,6 @@ public class SysJobController {
|
|
|
|
|
|
/**
|
|
|
* 暂停定时任务
|
|
|
- *
|
|
|
- * @return
|
|
|
*/
|
|
|
@PostMapping("/shutdown-job/{id}")
|
|
|
@PreAuthorize("@pms.hasPermission('job_sys_job_shutdown_job')")
|
|
|
@@ -242,8 +212,6 @@ public class SysJobController {
|
|
|
|
|
|
/**
|
|
|
* 唯一标识查询定时执行日志
|
|
|
- *
|
|
|
- * @return
|
|
|
*/
|
|
|
@GetMapping("/job-log")
|
|
|
public R getJobLog(Page page, SysJobLog sysJobLog) {
|