From 39405c053391f29d2f2c0e2c3104bea111e0e460 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 08 五月 2024 10:25:31 +0800
Subject: [PATCH] 代码提交

---
 ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobController.java |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobController.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobController.java
index b03ceb8..e73ff96 100644
--- a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobController.java
+++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobController.java
@@ -40,7 +40,7 @@
     /**
      * 鏌ヨ瀹氭椂浠诲姟鍒楄〃
      */
-    @PreAuthorize("@ss.hasPermi('monitor:job:list')")
+    // @PreAuthorize("@ss.hasPermi('monitor:job:list')")
     @GetMapping("/list")
     public TableDataInfo list(SysJob sysJob)
     {
@@ -52,7 +52,7 @@
     /**
      * 瀵煎嚭瀹氭椂浠诲姟鍒楄〃
      */
-    @PreAuthorize("@ss.hasPermi('monitor:job:export')")
+    // @PreAuthorize("@ss.hasPermi('monitor:job:export')")
     @Log(title = "瀹氭椂浠诲姟", businessType = BusinessType.EXPORT)
     @GetMapping("/export")
     public AjaxResult export(SysJob sysJob)
@@ -65,7 +65,7 @@
     /**
      * 鑾峰彇瀹氭椂浠诲姟璇︾粏淇℃伅
      */
-    @PreAuthorize("@ss.hasPermi('monitor:job:query')")
+    // @PreAuthorize("@ss.hasPermi('monitor:job:query')")
     @GetMapping(value = "/{jobId}")
     public AjaxResult getInfo(@PathVariable("jobId") Long jobId)
     {
@@ -75,7 +75,7 @@
     /**
      * 鏂板瀹氭椂浠诲姟
      */
-    @PreAuthorize("@ss.hasPermi('monitor:job:add')")
+    // @PreAuthorize("@ss.hasPermi('monitor:job:add')")
     @Log(title = "瀹氭椂浠诲姟", businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody SysJob job) throws SchedulerException, TaskException
@@ -103,9 +103,9 @@
     /**
      * 淇敼瀹氭椂浠诲姟
      */
-    @PreAuthorize("@ss.hasPermi('monitor:job:edit')")
+    // @PreAuthorize("@ss.hasPermi('monitor:job:edit')")
     @Log(title = "瀹氭椂浠诲姟", businessType = BusinessType.UPDATE)
-    @PutMapping
+    @PostMapping("/edit")
     public AjaxResult edit(@RequestBody SysJob job) throws SchedulerException, TaskException
     {
         if (!CronUtils.isValid(job.getCronExpression()))
@@ -131,9 +131,9 @@
     /**
      * 瀹氭椂浠诲姟鐘舵�佷慨鏀�
      */
-    @PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')")
+    // @PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')")
     @Log(title = "瀹氭椂浠诲姟", businessType = BusinessType.UPDATE)
-    @PutMapping("/changeStatus")
+    @PostMapping("/changeStatus")
     public AjaxResult changeStatus(@RequestBody SysJob job) throws SchedulerException
     {
         SysJob newJob = jobService.selectJobById(job.getJobId());
@@ -144,9 +144,9 @@
     /**
      * 瀹氭椂浠诲姟绔嬪嵆鎵ц涓�娆�
      */
-    @PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')")
+    // @PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')")
     @Log(title = "瀹氭椂浠诲姟", businessType = BusinessType.UPDATE)
-    @PutMapping("/run")
+    @PostMapping("/run")
     public AjaxResult run(@RequestBody SysJob job) throws SchedulerException
     {
         jobService.run(job);
@@ -156,9 +156,9 @@
     /**
      * 鍒犻櫎瀹氭椂浠诲姟
      */
-    @PreAuthorize("@ss.hasPermi('monitor:job:remove')")
+    // @PreAuthorize("@ss.hasPermi('monitor:job:remove')")
     @Log(title = "瀹氭椂浠诲姟", businessType = BusinessType.DELETE)
-    @DeleteMapping("/{jobIds}")
+    @GetMapping("/remove/{jobIds}")
     public AjaxResult remove(@PathVariable Long[] jobIds) throws SchedulerException, TaskException
     {
         jobService.deleteJobByIds(jobIds);

--
Gitblit v1.9.3