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

master
okayliao 6 years ago committed by Limy
parent 7c32588556
commit e14129971a

@ -91,7 +91,9 @@ public class SysJobController extends BaseController
@ResponseBody
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));
}
/**

Loading…
Cancel
Save