!12 【BUG】项目启动后配置的定时器任务无法正常启动

Merge pull request !12 from linCodeTest/quartz_bug
This commit is contained in:
疯狂的狮子li 2021-03-23 16:43:13 +08:00 committed by Gitee
commit 2df675bb01
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public abstract class AbstractQuartzJob implements Job
public void execute(JobExecutionContext context) throws JobExecutionException
{
SysJob sysJob = new SysJob();
BeanUtil.copyProperties(sysJob, context.getMergedJobDataMap().get(ScheduleConstants.TASK_PROPERTIES));
BeanUtil.copyProperties(context.getMergedJobDataMap().get(ScheduleConstants.TASK_PROPERTIES),sysJob);
try
{
before(context, sysJob);