|
@@ -93,12 +93,12 @@ public class BytedanceReportRetryJob {
|
|
|
Integer isSend = jsonObject.getInteger("isSend");
|
|
Integer isSend = jsonObject.getInteger("isSend");
|
|
|
String msg = jsonObject.getString("msg");
|
|
String msg = jsonObject.getString("msg");
|
|
|
if ("promoter".equals(dataDimension)) {
|
|
if ("promoter".equals(dataDimension)) {
|
|
|
|
|
+ promoterReportMapper.updateStatusByErrorId(id);
|
|
|
if (dataType.equals("hour")) { // 广告时报
|
|
if (dataType.equals("hour")) { // 广告时报
|
|
|
hourPromoterRetrExecutorService.submit(new Runnable() {
|
|
hourPromoterRetrExecutorService.submit(new Runnable() {
|
|
|
@Override
|
|
@Override
|
|
|
public void run() {
|
|
public void run() {
|
|
|
if (!Check.isNull(accessToken)) {
|
|
if (!Check.isNull(accessToken)) {
|
|
|
- promoterReportMapper.updateStatusByErrorId(id);
|
|
|
|
|
promoterReportService.getBytedanceRetryPromoterHourReport(id, advertiserId, accessToken, startDate, endDate, 1, isSend);
|
|
promoterReportService.getBytedanceRetryPromoterHourReport(id, advertiserId, accessToken, startDate, endDate, 1, isSend);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -109,7 +109,6 @@ public class BytedanceReportRetryJob {
|
|
|
@Override
|
|
@Override
|
|
|
public void run() {
|
|
public void run() {
|
|
|
if (!Check.isNull(accessToken)) {
|
|
if (!Check.isNull(accessToken)) {
|
|
|
- promoterReportMapper.updateStatusByErrorId(id);
|
|
|
|
|
promoterReportService.getBytedancePromoterRetryDailyReport(id, advertiserId, accessToken, startDate, endDate, 1, isSend);
|
|
promoterReportService.getBytedancePromoterRetryDailyReport(id, advertiserId, accessToken, startDate, endDate, 1, isSend);
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -117,22 +116,22 @@ public class BytedanceReportRetryJob {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
} else if ("product".equals(dataDimension)) {
|
|
} else if ("product".equals(dataDimension)) {
|
|
|
|
|
+ promoterReportMapper.updateStatusByErrorId(id);
|
|
|
productDailyRetrExecutor.submit(new Runnable() {
|
|
productDailyRetrExecutor.submit(new Runnable() {
|
|
|
@Override
|
|
@Override
|
|
|
public void run() {
|
|
public void run() {
|
|
|
if (!Check.isNull(accessToken)) {
|
|
if (!Check.isNull(accessToken)) {
|
|
|
- promoterReportMapper.updateStatusByErrorId(id);
|
|
|
|
|
productReportService.getBytedanceProductDailyReport(advertiserId, accessToken, startDate, endDate, 1, id, null, isSend);
|
|
productReportService.getBytedanceProductDailyReport(advertiserId, accessToken, startDate, endDate, 1, id, null, isSend);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
} else if ("account".equals(dataDimension)) {
|
|
} else if ("account".equals(dataDimension)) {
|
|
|
|
|
+ promoterReportMapper.updateStatusByErrorId(id);
|
|
|
if (dataType.equals("hour")) { // 账户时报
|
|
if (dataType.equals("hour")) { // 账户时报
|
|
|
hourAccountRetrExecutorService.submit(new Runnable() {
|
|
hourAccountRetrExecutorService.submit(new Runnable() {
|
|
|
@Override
|
|
@Override
|
|
|
public void run() {
|
|
public void run() {
|
|
|
if (!Check.isNull(accessToken)) {
|
|
if (!Check.isNull(accessToken)) {
|
|
|
- promoterReportMapper.updateStatusByErrorId(id);
|
|
|
|
|
accountReportService.getBytedanceRetryAccountHourReport(id, advertiserId, accessToken, startDate, endDate, 1, isSend);
|
|
accountReportService.getBytedanceRetryAccountHourReport(id, advertiserId, accessToken, startDate, endDate, 1, isSend);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -144,7 +143,6 @@ public class BytedanceReportRetryJob {
|
|
|
@Override
|
|
@Override
|
|
|
public void run() {
|
|
public void run() {
|
|
|
if (!Check.isNull(accessToken)) {
|
|
if (!Check.isNull(accessToken)) {
|
|
|
- promoterReportMapper.updateStatusByErrorId(id);
|
|
|
|
|
accountReportService.getBytedanceRetryAccountDailyReport(id, advertiserId, accessToken, startDate, endDate, 1, isSend);
|
|
accountReportService.getBytedanceRetryAccountDailyReport(id, advertiserId, accessToken, startDate, endDate, 1, isSend);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -152,25 +150,25 @@ public class BytedanceReportRetryJob {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
} else if ("flow_details".equals(dataDimension)) { //日报流水详情
|
|
} else if ("flow_details".equals(dataDimension)) { //日报流水详情
|
|
|
|
|
+ promoterReportMapper.updateStatusByErrorId(id);
|
|
|
flowDailyRetrExecutor.submit(new Runnable() {
|
|
flowDailyRetrExecutor.submit(new Runnable() {
|
|
|
-
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void run() {
|
|
public void run() {
|
|
|
- promoterReportMapper.updateStatusByErrorId(id);
|
|
|
|
|
byteDanceFlowDetailsReportService.getBytedanceFlowDetailsDailyReport(advertiserId, accessToken, AccountTypeEnum.AD.getValue(), startDate, endDate, 1, id);
|
|
byteDanceFlowDetailsReportService.getBytedanceFlowDetailsDailyReport(advertiserId, accessToken, AccountTypeEnum.AD.getValue(), startDate, endDate, 1, id);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
} else if ("material".equals(dataDimension)) {
|
|
} else if ("material".equals(dataDimension)) {
|
|
|
|
|
+ promoterReportMapper.updateStatusByErrorId(id);
|
|
|
materialRetrExecutor.submit(new Runnable() {
|
|
materialRetrExecutor.submit(new Runnable() {
|
|
|
@Override
|
|
@Override
|
|
|
public void run() {
|
|
public void run() {
|
|
|
if (!Check.isNull(accessToken)) {
|
|
if (!Check.isNull(accessToken)) {
|
|
|
- promoterReportMapper.updateStatusByErrorId(id);
|
|
|
|
|
bytedanceMaterialReportService.getBytedanceMaterialDailyReport(advertiserId, accessToken, startDate, endDate, 1, id, null, isSend, 1);
|
|
bytedanceMaterialReportService.getBytedanceMaterialDailyReport(advertiserId, accessToken, startDate, endDate, 1, id, null, isSend, 1);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
} else if ("material_video_get".equals(dataDimension)) {
|
|
} else if ("material_video_get".equals(dataDimension)) {
|
|
|
|
|
+ promoterReportMapper.updateStatusByErrorId(id);
|
|
|
HashSet<Long> materialIds = new HashSet<>();
|
|
HashSet<Long> materialIds = new HashSet<>();
|
|
|
JSONObject msgObject = JSONObject.parseObject(msg);
|
|
JSONObject msgObject = JSONObject.parseObject(msg);
|
|
|
if (msgObject != null && msgObject.getJSONArray("material_ids") != null) {
|
|
if (msgObject != null && msgObject.getJSONArray("material_ids") != null) {
|
|
@@ -180,27 +178,26 @@ public class BytedanceReportRetryJob {
|
|
|
@Override
|
|
@Override
|
|
|
public void run() {
|
|
public void run() {
|
|
|
if (!Check.isNull(accessToken)) {
|
|
if (!Check.isNull(accessToken)) {
|
|
|
- promoterReportMapper.updateStatusByErrorId(id);
|
|
|
|
|
bytedanceMaterialReportService.getBytedanceMaterialVideo(advertiserId, materialIds, accessToken, startDate, endDate, 1, id, null, isSend, 1);
|
|
bytedanceMaterialReportService.getBytedanceMaterialVideo(advertiserId, materialIds, accessToken, startDate, endDate, 1, id, null, isSend, 1);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
} else if ("promotion_list".equals(dataDimension)) {
|
|
} else if ("promotion_list".equals(dataDimension)) {
|
|
|
|
|
+ promoterReportMapper.updateStatusByErrorId(id);
|
|
|
productDailyRetrExecutor.submit(new Runnable() {
|
|
productDailyRetrExecutor.submit(new Runnable() {
|
|
|
@Override
|
|
@Override
|
|
|
public void run() {
|
|
public void run() {
|
|
|
if (!Check.isNull(accessToken)) {
|
|
if (!Check.isNull(accessToken)) {
|
|
|
- promoterReportMapper.updateStatusByErrorId(id);
|
|
|
|
|
cdpProjectService.getPromotionList(advertiserId, null, null, id, null);
|
|
cdpProjectService.getPromotionList(advertiserId, null, null, id, null);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
} else if ("project_list".equals(dataDimension)) {
|
|
} else if ("project_list".equals(dataDimension)) {
|
|
|
|
|
+ promoterReportMapper.updateStatusByErrorId(id);
|
|
|
productDailyRetrExecutor.submit(new Runnable() {
|
|
productDailyRetrExecutor.submit(new Runnable() {
|
|
|
@Override
|
|
@Override
|
|
|
public void run() {
|
|
public void run() {
|
|
|
if (!Check.isNull(accessToken)) {
|
|
if (!Check.isNull(accessToken)) {
|
|
|
- promoterReportMapper.updateStatusByErrorId(id);
|
|
|
|
|
cdpProjectService.getProjectList(advertiserId, null, null, null, id, null);
|
|
cdpProjectService.getProjectList(advertiserId, null, null, null, id, null);
|
|
|
cdpProjectService.getProjectList(advertiserId, null, "del", null, id, null);
|
|
cdpProjectService.getProjectList(advertiserId, null, "del", null, id, null);
|
|
|
}
|
|
}
|