|
@@ -213,7 +213,7 @@ public class SysJobController {
|
|
|
* @param jobId 定时人ID
|
|
* @param jobId 定时人ID
|
|
|
*/
|
|
*/
|
|
|
@SysLog("启动定时任务")
|
|
@SysLog("启动定时任务")
|
|
|
- @PostMapping("/startJob")
|
|
|
|
|
|
|
+ @GetMapping("/startJob")
|
|
|
@PreAuthorize("@pms.hasPermission('job_sys_job_start_job')")
|
|
@PreAuthorize("@pms.hasPermission('job_sys_job_start_job')")
|
|
|
@Operation(description = "启动定时任务")
|
|
@Operation(description = "启动定时任务")
|
|
|
public R startJob(@RequestParam("jobId") Long jobId) throws SchedulerException {
|
|
public R startJob(@RequestParam("jobId") Long jobId) throws SchedulerException {
|
|
@@ -245,7 +245,7 @@ public class SysJobController {
|
|
|
* @param jobId 任务ID
|
|
* @param jobId 任务ID
|
|
|
*/
|
|
*/
|
|
|
@SysLog("立刻执行定时任务")
|
|
@SysLog("立刻执行定时任务")
|
|
|
- @PostMapping("/runJob")
|
|
|
|
|
|
|
+ @GetMapping("/runJob")
|
|
|
@PreAuthorize("@pms.hasPermission('job_sys_job_run_job')")
|
|
@PreAuthorize("@pms.hasPermission('job_sys_job_run_job')")
|
|
|
@Operation(description = "立刻执行定时任务")
|
|
@Operation(description = "立刻执行定时任务")
|
|
|
public R runJob(@RequestParam("jobId") Long jobId) throws SchedulerException {
|
|
public R runJob(@RequestParam("jobId") Long jobId) throws SchedulerException {
|
|
@@ -265,7 +265,7 @@ public class SysJobController {
|
|
|
* 暂停定时任务
|
|
* 暂停定时任务
|
|
|
*/
|
|
*/
|
|
|
@SysLog("暂停定时任务")
|
|
@SysLog("暂停定时任务")
|
|
|
- @PostMapping("/shutdownJob")
|
|
|
|
|
|
|
+ @GetMapping("/shutdownJob")
|
|
|
@PreAuthorize("@pms.hasPermission('job_sys_job_shutdown_job')")
|
|
@PreAuthorize("@pms.hasPermission('job_sys_job_shutdown_job')")
|
|
|
@Operation(description = "暂停定时任务")
|
|
@Operation(description = "暂停定时任务")
|
|
|
public R shutdownJob(@RequestParam("jobId") Long jobId) {
|
|
public R shutdownJob(@RequestParam("jobId") Long jobId) {
|