定时任务支持Class类调用&多类型参数
This commit is contained in:
@ -127,7 +127,7 @@ public class SysJobController extends BaseController
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(SysJob job) throws SchedulerException, TaskException
|
||||
{
|
||||
return toAjax(jobService.insertJobCron(job));
|
||||
return toAjax(jobService.insertJob(job));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -149,7 +149,7 @@ public class SysJobController extends BaseController
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(SysJob job) throws SchedulerException, TaskException
|
||||
{
|
||||
return toAjax(jobService.updateJobCron(job));
|
||||
return toAjax(jobService.updateJob(job));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user