|
@@ -82,7 +82,7 @@
|
|
FROM ctop_etl_kuaishou_group_daily_report t1
|
|
FROM ctop_etl_kuaishou_group_daily_report t1
|
|
LEFT JOIN (
|
|
LEFT JOIN (
|
|
SELECT charge,unit_id FROM ctop_etl_kuaishou_group_daily_report
|
|
SELECT charge,unit_id FROM ctop_etl_kuaishou_group_daily_report
|
|
- WHERE account_id = 1
|
|
|
|
|
|
+ WHERE account_id = #{accountId}
|
|
AND stat_date = DATE_FORMAT(date_sub(now(), interval 1 day), '%Y-%m-%d')
|
|
AND stat_date = DATE_FORMAT(date_sub(now(), interval 1 day), '%Y-%m-%d')
|
|
) t2 ON t1.unit_id = t2.unit_id
|
|
) t2 ON t1.unit_id = t2.unit_id
|
|
WHERE account_id = #{accountId}
|
|
WHERE account_id = #{accountId}
|