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.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,