fix: 修复菜单初始化
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
package org.wfc.job.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.quartz.SchedulerException;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
@@ -21,13 +19,16 @@ import org.wfc.common.core.web.domain.AjaxResult;
|
||||
import org.wfc.common.core.web.page.TableDataInfo;
|
||||
import org.wfc.common.log.annotation.Log;
|
||||
import org.wfc.common.log.enums.BusinessType;
|
||||
import org.wfc.common.security.annotation.RequiresPermissions;
|
||||
//import org.wfc.common.security.annotation.RequiresPermissions;
|
||||
import org.wfc.common.security.utils.SecurityUtils;
|
||||
import org.wfc.job.domain.SysJob;
|
||||
import org.wfc.job.service.ISysJobService;
|
||||
import org.wfc.job.util.CronUtils;
|
||||
import org.wfc.job.util.ScheduleUtils;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 调度任务信息操作处理
|
||||
*
|
||||
@@ -43,7 +44,7 @@ public class SysJobController extends BaseController
|
||||
/**
|
||||
* 查询定时任务列表
|
||||
*/
|
||||
@RequiresPermissions("monitor:job:list")
|
||||
// @RequiresPermissions("monitor:job:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SysJob sysJob)
|
||||
{
|
||||
@@ -55,7 +56,7 @@ public class SysJobController extends BaseController
|
||||
/**
|
||||
* 导出定时任务列表
|
||||
*/
|
||||
@RequiresPermissions("monitor:job:export")
|
||||
// @RequiresPermissions("monitor:job:export")
|
||||
@Log(title = "定时任务", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SysJob sysJob)
|
||||
@@ -68,7 +69,7 @@ public class SysJobController extends BaseController
|
||||
/**
|
||||
* 获取定时任务详细信息
|
||||
*/
|
||||
@RequiresPermissions("monitor:job:query")
|
||||
// @RequiresPermissions("monitor:job:query")
|
||||
@GetMapping(value = "/{jobId}")
|
||||
public AjaxResult getInfo(@PathVariable("jobId") Long jobId)
|
||||
{
|
||||
@@ -78,7 +79,7 @@ public class SysJobController extends BaseController
|
||||
/**
|
||||
* 新增定时任务
|
||||
*/
|
||||
@RequiresPermissions("monitor:job:add")
|
||||
// @RequiresPermissions("monitor:job:add")
|
||||
@Log(title = "定时任务", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SysJob job) throws SchedulerException, TaskException
|
||||
@@ -114,7 +115,7 @@ public class SysJobController extends BaseController
|
||||
/**
|
||||
* 修改定时任务
|
||||
*/
|
||||
@RequiresPermissions("monitor:job:edit")
|
||||
// @RequiresPermissions("monitor:job:edit")
|
||||
@Log(title = "定时任务", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SysJob job) throws SchedulerException, TaskException
|
||||
@@ -150,7 +151,7 @@ public class SysJobController extends BaseController
|
||||
/**
|
||||
* 定时任务状态修改
|
||||
*/
|
||||
@RequiresPermissions("monitor:job:changeStatus")
|
||||
// @RequiresPermissions("monitor:job:changeStatus")
|
||||
@Log(title = "定时任务", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/changeStatus")
|
||||
public AjaxResult changeStatus(@RequestBody SysJob job) throws SchedulerException
|
||||
@@ -163,7 +164,7 @@ public class SysJobController extends BaseController
|
||||
/**
|
||||
* 定时任务立即执行一次
|
||||
*/
|
||||
@RequiresPermissions("monitor:job:changeStatus")
|
||||
// @RequiresPermissions("monitor:job:changeStatus")
|
||||
@Log(title = "定时任务", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/run")
|
||||
public AjaxResult run(@RequestBody SysJob job) throws SchedulerException
|
||||
@@ -175,7 +176,7 @@ public class SysJobController extends BaseController
|
||||
/**
|
||||
* 删除定时任务
|
||||
*/
|
||||
@RequiresPermissions("monitor:job:remove")
|
||||
// @RequiresPermissions("monitor:job:remove")
|
||||
@Log(title = "定时任务", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{jobIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] jobIds) throws SchedulerException, TaskException
|
||||
|
||||
Reference in New Issue
Block a user