浏览代码

定时任务执行权限

buzhanyi 2 年之前
父节点
当前提交
094a51a84d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      base-quartz/src/main/java/com/ozs/quartz/controller/SysJobController.java

+ 1 - 1
base-quartz/src/main/java/com/ozs/quartz/controller/SysJobController.java

@@ -162,7 +162,7 @@ public class SysJobController extends BaseController
     /**
      * 定时任务立即执行一次
      */
-    @PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')")
+    @PreAuthorize("@ss.hasPermi('monitor:job:run')")
     @Log(title = "定时任务", businessType = BusinessType.UPDATE)
     @PutMapping("/run")
     public AjaxResult run(@RequestBody SysJob job) throws SchedulerException