|
@@ -59,8 +59,8 @@ public class SysJobController extends BaseController {
|
|
|
* 获取定时任务详细信息
|
|
|
*/
|
|
|
//@PreAuthorize("@ss.hasPermi('monitor:job:query')")
|
|
|
- @GetMapping(value = "/{jobId}")
|
|
|
- public AjaxResult getInfo(@PathVariable("jobId") Long jobId) {
|
|
|
+ @GetMapping(value = "/detail")
|
|
|
+ public AjaxResult getInfo(Long jobId) {
|
|
|
return success(jobService.selectJobById(jobId));
|
|
|
}
|
|
|
|
|
@@ -140,8 +140,8 @@ public class SysJobController extends BaseController {
|
|
|
*/
|
|
|
//@PreAuthorize("@ss.hasPermi('monitor:job:remove')")
|
|
|
@Log(title = "定时任务", businessType = BusinessType.DELETE)
|
|
|
- @GetMapping("/del/{jobIds}")
|
|
|
- public AjaxResult remove(@PathVariable Long[] jobIds) throws SchedulerException, TaskException {
|
|
|
+ @GetMapping("/del")
|
|
|
+ public AjaxResult remove(Long[] jobIds) throws SchedulerException, TaskException {
|
|
|
jobService.deleteJobByIds(jobIds);
|
|
|
return success();
|
|
|
}
|