!83 fix:变更任务状态时,保留任务其它属性。

Merge pull request !83 from okayliao/develop
pull/83/MERGE
okayliao 2019-04-10 12:32:51 +08:00 committed by 若依
commit ab866e8a34
1 changed files with 3 additions and 1 deletions

View File

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