ct vor 1 Woche
Ursprung
Commit
d74fd85fb4
1 geänderte Dateien mit 16 neuen und 16 gelöschten Zeilen
  1. 16 16
      fs-quartz/src/main/java/com/fs/quartz/util/AbstractQuartzJob.java

+ 16 - 16
fs-quartz/src/main/java/com/fs/quartz/util/AbstractQuartzJob.java

@@ -33,22 +33,22 @@ public abstract class AbstractQuartzJob implements Job
     @Override
     public void execute(JobExecutionContext context) throws JobExecutionException
     {
-//        SysJob sysJob = new SysJob();
-//        BeanUtils.copyBeanProp(sysJob, context.getMergedJobDataMap().get(ScheduleConstants.TASK_PROPERTIES));
-//        try
-//        {
-//            before(context, sysJob);
-//            if (sysJob != null)
-//            {
-//                doExecute(context, sysJob);
-//            }
-//            after(context, sysJob, null);
-//        }
-//        catch (Exception e)
-//        {
-//            log.error("任务执行异常  - :", e);
-//            after(context, sysJob, e);
-//        }
+        SysJob sysJob = new SysJob();
+        BeanUtils.copyBeanProp(sysJob, context.getMergedJobDataMap().get(ScheduleConstants.TASK_PROPERTIES));
+        try
+        {
+            before(context, sysJob);
+            if (sysJob != null)
+            {
+                doExecute(context, sysJob);
+            }
+            after(context, sysJob, null);
+        }
+        catch (Exception e)
+        {
+            log.error("任务执行异常  - :", e);
+            after(context, sysJob, e);
+        }
     }
 
     /**