|
@@ -208,11 +208,9 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
|
|
|
String nowDate = DateUtils.getNowDate("yyyy-MM-dd"); // 当前日期
|
|
|
String anotherDay = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -1); // 当前日期-1
|
|
|
if (type == 1) { // 今日总消耗
|
|
|
- ReportVO reportVO = campaignDailyReportMapper.selectDayReport(nowDate);
|
|
|
- System.err.println("12312312313131313131313131313131");
|
|
|
- System.err.println(reportVO.toString());
|
|
|
- System.err.println("----------------------------------------------");
|
|
|
- JSONObject yesterJson = reportMapper.selectYesterday(anotherDay);
|
|
|
+ accountJson = reportMapper.selectDayReport(nowDate);
|
|
|
+
|
|
|
+ JSONObject yesterJson = reportMapper.selectDayReport(anotherDay);
|
|
|
if (!Check.isNull(yesterJson)) {
|
|
|
BigDecimal cost = accountJson.getBigDecimal("cost"); // 今日消耗
|
|
|
BigDecimal yesterCost = yesterJson.getBigDecimal("cost");// 昨日消耗
|
|
@@ -254,7 +252,7 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
|
|
|
}
|
|
|
|
|
|
} else if (type == 2) { // 昨日总消耗
|
|
|
- accountJson = reportMapper.selectYesterday(anotherDay);
|
|
|
+ accountJson = reportMapper.selectDayReport(anotherDay);
|
|
|
|
|
|
} else if (type == 3) { // 近七天
|
|
|
String endDate = DateUtils.getAnotherDay("yyyy-MM-dd", anotherDay, -7);
|