|
@@ -331,6 +331,7 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
|
|
|
+ System.err.println(accountJson);
|
|
|
return accountJson;
|
|
|
}
|
|
|
|
|
@@ -346,7 +347,6 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
|
|
|
for (int i = 0; i < dayDetail.size(); i++) {
|
|
|
JSONObject detailJson = dayDetail.get(i);
|
|
|
String statHour = detailJson.getString("statHour");
|
|
|
-
|
|
|
JSONObject yesterDayJson = reportMapper.selectYesterdayByHourAndDate(anotherDay, statHour);
|
|
|
if (!Check.isNull(yesterDayJson)) {
|
|
|
BigDecimal cost = detailJson.getBigDecimal("cost"); // 今日消耗
|
|
@@ -383,14 +383,13 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
|
|
|
} else {
|
|
|
detailJson.put("proportion", 0); // 较昨日增加比例
|
|
|
}
|
|
|
- detail.add(detailJson);
|
|
|
+
|
|
|
}
|
|
|
+ detail.add(detailJson);
|
|
|
|
|
|
}
|
|
|
- System.err.println(detail);
|
|
|
} else if (type == 2) { // 昨日明细
|
|
|
detail = reportMapper.selectReportDetail(anotherDay);
|
|
|
- System.err.println(detail);
|
|
|
} else if (type == 3) { // 近七天明细
|
|
|
String endDate = DateUtils.getAnotherDay("yyyy-MM-dd", anotherDay, -7);
|
|
|
detail = reportMapper.selectDayDetailByDate(anotherDay, endDate);
|
|
@@ -494,6 +493,7 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ System.err.println(detail);
|
|
|
|
|
|
return detail;
|
|
|
}
|