|
@@ -1,7 +1,6 @@
|
|
|
package cn.com.ctop.job.bytedance.handler;
|
|
package cn.com.ctop.job.bytedance.handler;
|
|
|
|
|
|
|
|
|
|
|
|
|
-import cn.com.ctop.job.bytedance.data.service.*;
|
|
|
|
|
import cn.com.ctop.job.bytedance.data.enums.AccountTypeEnum;
|
|
import cn.com.ctop.job.bytedance.data.enums.AccountTypeEnum;
|
|
|
import cn.com.ctop.job.bytedance.data.service.*;
|
|
import cn.com.ctop.job.bytedance.data.service.*;
|
|
|
import cn.com.ctop.job.bytedance.data.utils.Check;
|
|
import cn.com.ctop.job.bytedance.data.utils.Check;
|
|
@@ -42,6 +41,9 @@ public class BytedanceReportRetryJob {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IByteDanceFlowDetailsReportService byteDanceFlowDetailsReportService;
|
|
private IByteDanceFlowDetailsReportService byteDanceFlowDetailsReportService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IBytedanceXingTuService bytedanceXingTuService;
|
|
|
|
|
+
|
|
|
|
|
|
|
|
private static ExecutorService hourAccountRetrExecutorService = Executors.newFixedThreadPool(2);
|
|
private static ExecutorService hourAccountRetrExecutorService = Executors.newFixedThreadPool(2);
|
|
|
private static ExecutorService dailyAccountRetrExecutorService = Executors.newFixedThreadPool(2);
|
|
private static ExecutorService dailyAccountRetrExecutorService = Executors.newFixedThreadPool(2);
|
|
@@ -180,6 +182,31 @@ public class BytedanceReportRetryJob {
|
|
|
log.info("抖小IAA重试列表为空");
|
|
log.info("抖小IAA重试列表为空");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ List<JSONObject> xingTuRetryJob = bytedanceXingTuService.getXingTuRetryJob();
|
|
|
|
|
+ if (!Check.isNull(xingTuRetryJob)) {
|
|
|
|
|
+ for (int i = 0; i < xingTuRetryJob.size(); i++) {
|
|
|
|
|
+ JSONObject jsonObject = xingTuRetryJob.get(i);
|
|
|
|
|
+ Long id = jsonObject.getLong("id");
|
|
|
|
|
+ Long advertiserId = jsonObject.getLong("advertiserId");
|
|
|
|
|
+ String startDate = jsonObject.getString("startDate");
|
|
|
|
|
+ String endDate = jsonObject.getString("endDate");
|
|
|
|
|
+ String dataDimension = jsonObject.getString("dataDimension");
|
|
|
|
|
+ Integer isSend = jsonObject.getInteger("isSend");
|
|
|
|
|
+ String accessToken = jsonObject.getString("accessToken");
|
|
|
|
|
+ Long taskId = jsonObject.getJSONObject("msg").getLong("taskId");
|
|
|
|
|
+
|
|
|
|
|
+ if ("xingtu_task_list".equalsIgnoreCase(dataDimension)) {
|
|
|
|
|
+ bytedanceXingTuService.getXingTuTaskList(advertiserId, accessToken, startDate, endDate, 1, id, null, isSend);
|
|
|
|
|
+ } else if ("xingtu_task_info".equalsIgnoreCase(dataDimension)) {
|
|
|
|
|
+ bytedanceXingTuService.getXingTuTaskInfo(advertiserId, taskId, accessToken, id, null, isSend);
|
|
|
|
|
+ } else if ("xingtu_task_report".equalsIgnoreCase(dataDimension)) {
|
|
|
|
|
+ bytedanceXingTuService.getXingTuTaskReport(advertiserId, taskId, accessToken, 1, id, null, isSend);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ log.info("巨量星图重试列表为空");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|