diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/service/impl/SysJobServiceImpl.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/service/impl/SysJobServiceImpl.java index 930d4482..a02d65da 100644 --- a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/service/impl/SysJobServiceImpl.java +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/service/impl/SysJobServiceImpl.java @@ -116,7 +116,7 @@ public class SysJobServiceImpl implements ISysJobService @Override public int deleteJob(SysJob job) { - int rows = jobMapper.deleteJobById(job); + int rows = jobMapper.deleteJobById(job.getJobId()); if (rows > 0) { ScheduleUtils.deleteScheduleJob(scheduler, job.getJobId());