|
|
@@ -1,10 +1,8 @@
|
|
|
package cn.com.ctop.job.bytedance.handler;
|
|
|
|
|
|
|
|
|
-import cn.com.ctop.job.bytedance.data.service.IBytedanceAccountReportService;
|
|
|
-import cn.com.ctop.job.bytedance.data.service.IBytedanceProductReportService;
|
|
|
-import cn.com.ctop.job.bytedance.data.service.IBytedancePromoterReportService;
|
|
|
-import cn.com.ctop.job.bytedance.data.service.IChannelService;
|
|
|
+import cn.com.ctop.job.bytedance.data.enums.AccountTypeEnum;
|
|
|
+import cn.com.ctop.job.bytedance.data.service.*;
|
|
|
import cn.com.ctop.job.bytedance.data.utils.Check;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
|
|
@@ -37,6 +35,9 @@ public class BytedanceReportRetryJob {
|
|
|
@Autowired
|
|
|
private IChannelService channelService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IByteDanceFlowDetailsReportService byteDanceFlowDetailsReportService;
|
|
|
+
|
|
|
|
|
|
private static ExecutorService hourAccountRetrExecutorService = Executors.newFixedThreadPool(2);
|
|
|
private static ExecutorService dailyAccountRetrExecutorService = Executors.newFixedThreadPool(2);
|
|
|
@@ -46,6 +47,8 @@ public class BytedanceReportRetryJob {
|
|
|
|
|
|
private static ExecutorService productDailyRetrExecutor = Executors.newFixedThreadPool(2);
|
|
|
|
|
|
+ private static ExecutorService flowDailyRetrExecutor = Executors.newFixedThreadPool(2);
|
|
|
+
|
|
|
|
|
|
@XxlJob("retryReport")
|
|
|
public void retryReport() throws Exception {
|
|
|
@@ -115,6 +118,14 @@ public class BytedanceReportRetryJob {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ } else if ("flow_details".equals(dataDimension)) { //日报流水详情
|
|
|
+ flowDailyRetrExecutor.submit(new Runnable() {
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void run() {
|
|
|
+ byteDanceFlowDetailsReportService.getBytedanceFlowDetailsDailyReport(advertiserId, accessToken, AccountTypeEnum.AD.getValue(), startDate, endDate, 1);
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
|