|
@@ -138,7 +138,7 @@
|
|
SELECT sum(charge) as 'charge'
|
|
SELECT sum(charge) as 'charge'
|
|
FROM application.kuaishou_account_report_hourly_dw
|
|
FROM application.kuaishou_account_report_hourly_dw
|
|
where stat_date >= DATE_FORMAT(DATE_ADD(#{statDay},INTERVAL -#{days} day), '%Y%m%d')
|
|
where stat_date >= DATE_FORMAT(DATE_ADD(#{statDay},INTERVAL -#{days} day), '%Y%m%d')
|
|
- where stat_date <= DATE_FORMAT(DATE_ADD(#{endTime},INTERVAL -#{days} day), '%Y%m%d')
|
|
|
|
|
|
+ AND stat_date <= DATE_FORMAT(DATE_ADD(#{endTime},INTERVAL -#{days} day), '%Y%m%d')
|
|
and company_id = #{companyId}
|
|
and company_id = #{companyId}
|
|
<if test="accountIds !=null and accountIds.size()>0">
|
|
<if test="accountIds !=null and accountIds.size()>0">
|
|
AND account_id in
|
|
AND account_id in
|