| 
					
				 | 
			
			
				@@ -13,7 +13,6 @@ import com.fs.quartz.service.ISysJobService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.quartz.util.CronUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.security.access.prepost.PreAuthorize; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.List; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -33,7 +32,6 @@ public class SysJobController extends BaseController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 查询定时任务列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @PreAuthorize("@ss.hasPermi('monitor:job:list')") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @GetMapping("/list") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public TableDataInfo list(SysJob sysJob) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -45,7 +43,6 @@ public class SysJobController extends BaseController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 导出定时任务列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @PreAuthorize("@ss.hasPermi('monitor:job:export')") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Log(title = "定时任务", businessType = BusinessType.EXPORT) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @GetMapping("/export") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public AjaxResult export(SysJob sysJob) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -58,7 +55,6 @@ public class SysJobController extends BaseController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 获取定时任务详细信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @PreAuthorize("@ss.hasPermi('monitor:job:query')") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @GetMapping(value = "/{jobId}") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public AjaxResult getInfo(@PathVariable("jobId") Long jobId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -68,7 +64,6 @@ public class SysJobController extends BaseController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 新增定时任务 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @PreAuthorize("@ss.hasPermi('monitor:job:add')") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Log(title = "定时任务", businessType = BusinessType.INSERT) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PostMapping 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public AjaxResult add(@RequestBody SysJob sysJob) throws Exception, TaskException 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -77,14 +72,12 @@ public class SysJobController extends BaseController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return AjaxResult.error("cron表达式不正确"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        sysJob.setCreateBy(SecurityUtils.getUsername()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return toAjax(jobService.insertJob(sysJob)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 修改定时任务 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @PreAuthorize("@ss.hasPermi('monitor:job:edit')") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Log(title = "定时任务", businessType = BusinessType.UPDATE) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PutMapping 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public AjaxResult edit(@RequestBody SysJob sysJob) throws Exception, TaskException 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -93,14 +86,12 @@ public class SysJobController extends BaseController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return AjaxResult.error("cron表达式不正确"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        sysJob.setUpdateBy(SecurityUtils.getUsername()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return toAjax(jobService.updateJob(sysJob)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 定时任务状态修改 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Log(title = "定时任务", businessType = BusinessType.UPDATE) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PutMapping("/changeStatus") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public AjaxResult changeStatus(@RequestBody SysJob job) throws Exception 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -113,7 +104,6 @@ public class SysJobController extends BaseController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 定时任务立即执行一次 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Log(title = "定时任务", businessType = BusinessType.UPDATE) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PutMapping("/run") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public AjaxResult run(@RequestBody SysJob job) throws Exception 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -125,7 +115,6 @@ public class SysJobController extends BaseController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 删除定时任务 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @PreAuthorize("@ss.hasPermi('monitor:job:remove')") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Log(title = "定时任务", businessType = BusinessType.DELETE) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @DeleteMapping("/{jobIds}") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public AjaxResult remove(@PathVariable Long[] jobIds) throws Exception, TaskException 
			 |