|
@@ -151,7 +151,9 @@ public class ReportServiceImpl implements IReportService {
|
|
var config = new SerializeConfig();
|
|
var config = new SerializeConfig();
|
|
config.propertyNamingStrategy = PropertyNamingStrategy.SnakeCase;
|
|
config.propertyNamingStrategy = PropertyNamingStrategy.SnakeCase;
|
|
var jsonObject = JSONObject.parseObject(JSON.toJSONString(conditions, config));
|
|
var jsonObject = JSONObject.parseObject(JSON.toJSONString(conditions, config));
|
|
|
|
+
|
|
JSONObject getObject = getAdStat(token, jsonObject);
|
|
JSONObject getObject = getAdStat(token, jsonObject);
|
|
|
|
+ // System.out.println(conditions.getStartDate() + " " + conditions.getEndDate() + " " + getObject.getString("request_id"));
|
|
if (null == getObject) {
|
|
if (null == getObject) {
|
|
log.error("广告计划报表数据获取异常=》account:{};message:{}", token.getAccountId(), "返回数据异常");
|
|
log.error("广告计划报表数据获取异常=》account:{};message:{}", token.getAccountId(), "返回数据异常");
|
|
return;
|
|
return;
|
|
@@ -381,6 +383,13 @@ public class ReportServiceImpl implements IReportService {
|
|
JSONArray groupBy = new JSONArray();
|
|
JSONArray groupBy = new JSONArray();
|
|
groupBy.add("STAT_GROUP_BY_FIELD_ID");
|
|
groupBy.add("STAT_GROUP_BY_FIELD_ID");
|
|
groupBy.add("STAT_GROUP_BY_FIELD_STAT_TIME");
|
|
groupBy.add("STAT_GROUP_BY_FIELD_STAT_TIME");
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ JSONObject status = new JSONObject();
|
|
|
|
+ status.put("status","AD_STATUS_ALL");
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ conditions.put("filtering",status);
|
|
conditions.put("group_by", groupBy);
|
|
conditions.put("group_by", groupBy);
|
|
return HttpUtils.bytedanceGetRequest(token.getAccessToken(), url, conditions);
|
|
return HttpUtils.bytedanceGetRequest(token.getAccessToken(), url, conditions);
|
|
}
|
|
}
|