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