变更任务状态时,保留任务其它属性。

This commit is contained in:
RuoYi
2019-04-10 12:35:38 +08:00
parent ab866e8a34
commit 83a96a2327
3 changed files with 2 additions and 4 deletions

View File

@ -91,7 +91,7 @@ public class SysJobController extends BaseController
@ResponseBody
public AjaxResult changeStatus(SysJob job) throws SchedulerException
{
Job newJob = jobService.selectJobById(job.getJobId());
SysJob newJob = jobService.selectJobById(job.getJobId());
newJob.setStatus(job.getStatus());
return toAjax(jobService.changeStatus(newJob));
}