From 4675691035eb2d14323d116fec9822d218cdf66f Mon Sep 17 00:00:00 2001 From: okayliao Date: Tue, 9 Apr 2019 17:29:12 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=8F=98=E6=9B=B4=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E7=8A=B6=E6=80=81=E6=97=B6=EF=BC=8C=E4=BF=9D=E7=95=99?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=85=B6=E5=AE=83=E5=B1=9E=E6=80=A7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/quartz/controller/SysJobController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobController.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobController.java index 1fb405956..0caa67784 100644 --- a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobController.java +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobController.java @@ -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)); } /**