renyupeng0920 2 tháng trước cách đây
mục cha
commit
b14731a593
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      Apietl/kwai_etl/report/AppKuaiShouAgentReport.py

+ 6 - 2
Apietl/kwai_etl/report/AppKuaiShouAgentReport.py

@@ -108,8 +108,12 @@ report.industry,
 report.second_industry,
 report.union_event_pay_purchase_amount_7d,
 report.union_event_pay_purchase_amount_7d_roi
-from (select * from media_api.kuaishou_agent_report_daily where stat_date={date_time}) report
-LEFT JOIN (
+from (select * from media_api.kuaishou_agent_report_daily where stat_date={date_time}
+and  advertiser_id in(
+select advertiser_id from media_api.kuaishou_account_report_daily where stat_date={date_time}
+and charge>0
+) report
+inner JOIN (
 SELECT
 cua.account_id id,
 cua.account_id account_id,