|
@@ -84,7 +84,8 @@ select {date_time} stat_date,
|
|
|
0 as put_unit_num,
|
|
|
0 as trust_campaign_num,
|
|
|
0 as trust_unit_num,
|
|
|
- project_num as new_cpd_project_num
|
|
|
+ project_num as new_cpd_project_num,
|
|
|
+ promotion_num as promotion_num
|
|
|
from (select * from `jeecg-boot`.ctop_user_allocation where media_id = 1) t1
|
|
|
left join
|
|
|
(select account_id, count(id) ad_num
|
|
@@ -153,7 +154,7 @@ from (select * from `jeecg-boot`.ctop_user_allocation where media_id = 1) t1
|
|
|
|
|
|
|
|
|
left join(
|
|
|
- select advertiser_id,count(distinct promotion_id) as project_num from media_api.bytedance_promotion_list
|
|
|
+ select advertiser_id,count(distinct promotion_id) as promotion_num from media_api.bytedance_promotion_list
|
|
|
where date_format(promotion_create_time, '%Y%m%d') = {date_time}
|
|
|
group by advertiser_id
|
|
|
)promotion
|