|
@@ -74,8 +74,8 @@ t2.cam_num new_campaign_num,
|
|
|
t2.unit_num new_ad_num,
|
|
|
(ifnull(t1.all_video_num,0)+ifnull(t3.day_num,0)) as all_video_num,
|
|
|
t3.day_num new_video_num,
|
|
|
-t4.effect_num,
|
|
|
-t4.hot_num,
|
|
|
+0 effect_num,
|
|
|
+0 hot_num,
|
|
|
t1.put_campaign_num,
|
|
|
t1.put_unit_num,
|
|
|
t1.trust_campaign_num,
|
|
@@ -90,15 +90,6 @@ left join
|
|
|
where date_format(stat_date,'%Y%m%d')={date_time} group by account_id) t3
|
|
|
on t1.account_id=t3.account_id
|
|
|
left join
|
|
|
-(select a.account_id,count(distinct ifnull(b.signature,null)) effect_num,count(distinct ifnull(c.signature,null)) hot_num from
|
|
|
-(select distinct account_id,signature from `media_api`.kuaishou_video_list where date_format(stat_date,'%Y%m%d')<={date_time}) a
|
|
|
-left join (select distinct signature from application.effect_material where media_id=2) b
|
|
|
-on a.signature=b.signature
|
|
|
-left join (select distinct signature from application.hot_material where media_id=2) c
|
|
|
-on a.signature=c.signature
|
|
|
-group by a.account_id) t4
|
|
|
-on t1.account_id=t4.account_id
|
|
|
-left join
|
|
|
(
|
|
|
SELECT
|
|
|
cua.account_id id,
|