renyupeng 2 tahun lalu
induk
melakukan
3c238c20b7
1 mengubah file dengan 9 tambahan dan 0 penghapusan
  1. 9 0
      Apietl/task/AppBytedanceAccountBaseInfoDsD.py

+ 9 - 0
Apietl/task/AppBytedanceAccountBaseInfoDsD.py

@@ -150,6 +150,15 @@ from (select * from `jeecg-boot`.ctop_user_allocation where media_id = 1) t1
       group by advertiser_id
     )pro
     on t1.account_id=pro.advertiser_id
+    
+    
+        left join(
+        select advertiser_id,count(distinct promotion_id) as project_num from media_api.bytedance_promotion_list
+          where date_format(promotion_create_time, '%Y%m%d') = {date_time}
+      group by advertiser_id
+    )promotion
+    on t1.account_id=promotion.advertiser_id
+
 
          left join
      (select t2.account_id, count(distinct t1.signature) new_hot_material