|
@@ -32,6 +32,8 @@ public class AdqRetryReportServiceImpl implements IAdqRetryReportService {
|
|
|
private static ExecutorService sendExecutorService = Executors.newFixedThreadPool(5);
|
|
private static ExecutorService sendExecutorService = Executors.newFixedThreadPool(5);
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private AdqAccountReportMapper accountReportMapper;
|
|
private AdqAccountReportMapper accountReportMapper;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private AdqErrorLogMapper adqErrorLogMapper;
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void getCreativeHourRetry(Long errorId, Long advertiserId, String accessToken, String startDate, String endDate, Integer page, Integer isSend) {
|
|
public void getCreativeHourRetry(Long errorId, Long advertiserId, String accessToken, String startDate, String endDate, Integer page, Integer isSend) {
|
|
@@ -87,7 +89,7 @@ public class AdqRetryReportServiceImpl implements IAdqRetryReportService {
|
|
|
getCreativeHourRetry(errorId, advertiserId, accessToken, startDate, endDate, page + 1, isSend);
|
|
getCreativeHourRetry(errorId, advertiserId, accessToken, startDate, endDate, page + 1, isSend);
|
|
|
} else {
|
|
} else {
|
|
|
log.error("请求创意时报完成,account_id:{},日期:{}", advertiserId, startDate);
|
|
log.error("请求创意时报完成,account_id:{},日期:{}", advertiserId, startDate);
|
|
|
- adqReportMapper.deleteInfoByErrorId(errorId);
|
|
|
|
|
|
|
+ adqErrorLogMapper.deleteInfoByErrorId(errorId);
|
|
|
if (isSend == 1) {
|
|
if (isSend == 1) {
|
|
|
sendMessage(advertiserId, startDate, endDate, 3, "hour", 1, "creative");
|
|
sendMessage(advertiserId, startDate, endDate, 3, "hour", 1, "creative");
|
|
|
}
|
|
}
|
|
@@ -149,7 +151,7 @@ public class AdqRetryReportServiceImpl implements IAdqRetryReportService {
|
|
|
getCreativeDailyRetry(errorId, advertiserId, accessToken, startDate, endDate, page + 1, isSend);
|
|
getCreativeDailyRetry(errorId, advertiserId, accessToken, startDate, endDate, page + 1, isSend);
|
|
|
} else {
|
|
} else {
|
|
|
log.error("请求创意日报完成,account_id:{},日期:{}", advertiserId, startDate);
|
|
log.error("请求创意日报完成,account_id:{},日期:{}", advertiserId, startDate);
|
|
|
- adqReportMapper.deleteInfoByErrorId(errorId);
|
|
|
|
|
|
|
+ adqErrorLogMapper.deleteInfoByErrorId(errorId);
|
|
|
if (isSend == 1) {
|
|
if (isSend == 1) {
|
|
|
sendMessage(advertiserId, startDate, endDate, 3, "daily", 1, "creative");
|
|
sendMessage(advertiserId, startDate, endDate, 3, "daily", 1, "creative");
|
|
|
}
|
|
}
|
|
@@ -212,7 +214,7 @@ public class AdqRetryReportServiceImpl implements IAdqRetryReportService {
|
|
|
getAccountHourRetry(errorId, advertiserId, accessToken, startDate, endDate, page + 1, isSend);
|
|
getAccountHourRetry(errorId, advertiserId, accessToken, startDate, endDate, page + 1, isSend);
|
|
|
} else {
|
|
} else {
|
|
|
log.info("请求账户时报完成,account_id:{},日期:{}", advertiserId, startDate);
|
|
log.info("请求账户时报完成,account_id:{},日期:{}", advertiserId, startDate);
|
|
|
- adqReportMapper.deleteInfoByErrorId(errorId);
|
|
|
|
|
|
|
+ adqErrorLogMapper.deleteInfoByErrorId(errorId);
|
|
|
if (isSend == 1) {
|
|
if (isSend == 1) {
|
|
|
sendMessage(advertiserId, startDate, endDate, 3, "daily", 1, "account");
|
|
sendMessage(advertiserId, startDate, endDate, 3, "daily", 1, "account");
|
|
|
}
|
|
}
|
|
@@ -274,7 +276,7 @@ public class AdqRetryReportServiceImpl implements IAdqRetryReportService {
|
|
|
getAccountDailyRetry(errorId, advertiserId, accessToken, startDate, endDate, page + 1, isSend);
|
|
getAccountDailyRetry(errorId, advertiserId, accessToken, startDate, endDate, page + 1, isSend);
|
|
|
} else {
|
|
} else {
|
|
|
log.error("请求账户日报完成,account_id:{},日期:{}", advertiserId, startDate);
|
|
log.error("请求账户日报完成,account_id:{},日期:{}", advertiserId, startDate);
|
|
|
- adqReportMapper.deleteInfoByErrorId(errorId);
|
|
|
|
|
|
|
+ adqErrorLogMapper.deleteInfoByErrorId(errorId);
|
|
|
if (isSend == 1) {
|
|
if (isSend == 1) {
|
|
|
sendMessage(advertiserId, startDate, endDate, 3, "daily", 1, "account");
|
|
sendMessage(advertiserId, startDate, endDate, 3, "daily", 1, "account");
|
|
|
}
|
|
}
|