beanUtil.copy参数顺序反了

This commit is contained in:
linjiaru 2021-03-23 16:22:02 +08:00
parent 6557f1bdae
commit c9e01879ca

View File

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