Forráskód Böngészése

修改定时任务日志输出

syh 5 éve
szülő
commit
e126871a8c

+ 3 - 1
xxl-job-executor/src/main/java/com/xxl/job/executor/handler/bytedance/BytedancePlanHourlyReportLoadJob.java

@@ -5,6 +5,7 @@ import cn.com.ctop.common.module.service.ICtopOauthTokenService;
 import cn.com.ctop.common.module.utils.CtopAdConstant;
 import cn.com.ctop.toutiao.modules.report.service.IBytedancePlanDailyReportService;
 import cn.com.ctop.toutiao.modules.report.service.IReportService;
+import com.xxl.job.core.biz.model.ReturnT;
 import com.xxl.job.core.handler.annotation.XxlJob;
 import com.xxl.job.core.log.XxlJobLogger;
 import org.jeecg.common.util.DateUtils;
@@ -36,7 +37,7 @@ public class BytedancePlanHourlyReportLoadJob {
 
 
     @XxlJob("bytedancePlanHourlyReport")
-    public void execute(String param) {
+    public ReturnT<String> execute(String param) {
         XxlJobLogger.log("头条时报数据获取开始");
         Date getDate = new Date();
         SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH");
@@ -73,5 +74,6 @@ public class BytedancePlanHourlyReportLoadJob {
 
         XxlJobLogger.log("头条时报数据获取结束");
         executorService.shutdown();
+        return ReturnT.SUCCESS;
     }
 }