renyupeng0920 2 月之前
父節點
當前提交
b14731a593
共有 1 個文件被更改,包括 6 次插入2 次删除
  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.second_industry,
 report.union_event_pay_purchase_amount_7d,
 report.union_event_pay_purchase_amount_7d,
 report.union_event_pay_purchase_amount_7d_roi
 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
 SELECT
 cua.account_id id,
 cua.account_id id,
 cua.account_id account_id,
 cua.account_id account_id,