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