renyupeng 1 年之前
父節點
當前提交
999edf011d
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      Apietl/task/AppBytedanceAccountBaseInfoDsD.py

+ 4 - 4
Apietl/task/AppBytedanceAccountBaseInfoDsD.py

@@ -127,7 +127,7 @@ from (select * from `jeecg-boot`.ctop_user_allocation where media_id = 1) t1
          left join
      (select t2.account_id, count(distinct t1.signature) new_eff_material
       from (select signature from application.effect_material where effect_date = {date_time}) t1
-               inner join
+               left join
            (select distinct advertiser_id account_id, signature
             from `media_api`.bytedance_file_video_get
             where date_format(create_time, '%Y%m%d') >=
@@ -139,7 +139,7 @@ from (select * from `jeecg-boot`.ctop_user_allocation where media_id = 1) t1
          left join
      (select t2.account_id, count(distinct t1.signature) new_eff_material
       from (select signature from application.effect_material where effect_date <= {date_time}) t1
-               inner join
+               left join
            (select distinct advertiser_id account_id, signature
             from `media_api`.bytedance_file_video_get
             where date_format(create_time, '%Y%m%d') <= {date_time}) t2
@@ -165,7 +165,7 @@ from (select * from `jeecg-boot`.ctop_user_allocation where media_id = 1) t1
          left join
      (select t2.account_id, count(distinct t1.signature) new_hot_material
       from (select signature from application.hot_material where hot_date = {date_time} and media_id=1) t1
-               inner join
+               left join
            (select distinct advertiser_id account_id, signature
             from `media_api`.bytedance_file_video_get
             where date_format(create_time, '%Y%m%d') >=
@@ -178,7 +178,7 @@ from (select * from `jeecg-boot`.ctop_user_allocation where media_id = 1) t1
          left join
      (select t2.account_id, count(distinct t1.signature) new_hot_material
       from (select signature from application.hot_material where  hot_date<= {date_time}) t1
-               inner join
+               left join
            (select distinct advertiser_id account_id, signature
             from `media_api`.bytedance_file_video_get
             where date_format(create_time, '%Y%m%d') <= {date_time}) t2