|
|
@@ -45,7 +45,7 @@ public class ByteDanceFlowDetailsReportServiceImpl implements IByteDanceFlowDeta
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void getBytedanceFlowDetailsDailyReport(Long advertiserId, String accessToken, String accountType, String startDate, String endDate, Integer page) {
|
|
|
+ public void getBytedanceFlowDetailsDailyReport(Long advertiserId, String accessToken, String accountType, String startDate, String endDate, Integer page, Long errorId) {
|
|
|
String url = "https://ad.oceanengine.com/open_api/2/advertiser/fund/daily_stat/";
|
|
|
Map<String, Object> paramsMap = new HashMap<>();
|
|
|
paramsMap.put("advertiser_id", advertiserId);
|
|
|
@@ -136,9 +136,13 @@ public class ByteDanceFlowDetailsReportServiceImpl implements IByteDanceFlowDeta
|
|
|
} catch (InterruptedException e) {
|
|
|
throw new RuntimeException(e);
|
|
|
}
|
|
|
- getBytedanceFlowDetailsDailyReport(advertiserId, accessToken, accountType, startDate, endDate, page + 1);
|
|
|
+ getBytedanceFlowDetailsDailyReport(advertiserId, accessToken, accountType, startDate, endDate, page + 1, errorId);
|
|
|
}else{
|
|
|
log.info("账户ID:{},日期:{},流水日报详情数据日报请求成功", advertiserId, startDate);
|
|
|
+
|
|
|
+ if(errorId != null){
|
|
|
+ promoterReportMapper.deleteInfoByErrorId(errorId);
|
|
|
+ }
|
|
|
//send message to feishu
|
|
|
// AlertUtils.sendMessage(advertiserId, startDate, endDate, 1, "flow_details_daily", 1,null);
|
|
|
}
|