|
@@ -267,10 +267,10 @@ select report.advertiser_id
|
|
|
event_ad_watch_times,
|
|
|
video.signature,
|
|
|
video.channel_type,
|
|
|
- cma.clip_name,
|
|
|
- cma.shot_name,
|
|
|
- cma.plan_name,
|
|
|
- cma.leader_name,
|
|
|
+ clip.realname,
|
|
|
+ shot.realname,
|
|
|
+ plan.realname,
|
|
|
+ leader.leader_name,
|
|
|
case when cmi.material_name is not null then cmi.material_name else video.photo_name end as video_name,
|
|
|
case when video.channel_type = 1 then '素造' else '内部' end as channel_name,
|
|
|
uc.company_id
|
|
@@ -284,6 +284,9 @@ from media_api.kuaishou_material_video_report_hourly report
|
|
|
left join `jeecg-boot`.ctop_advertiser ca on ca.id = cua.advertiser_id
|
|
|
left join `jeecg-boot`.sys_user su on su.id = cua.user_id
|
|
|
left join `jeecg-boot`.sys_user clip on clip.id = cma.clip_id
|
|
|
+ left join `jeecg-boot`.sys_user shot on shot.id = cma.shot_id
|
|
|
+ left join `jeecg-boot`.sys_user plan on plan.id = cma.plan_id
|
|
|
+ left join `jeecg-boot`.sys_user leader on leader.id = cma.leader_id
|
|
|
left join `jeecg-boot`.user_company uc on uc.user_id = clip.id
|
|
|
left join `jeecg-boot`.ctop_product product on product.id = cp.product_id
|
|
|
where report.stat_date between {start_time} and {end_time} and report.photo_id!=0
|