|
@@ -61,12 +61,7 @@ SELECT date_format({date_time},'%Y%m') stat_non,
|
|
#机构编码
|
|
#机构编码
|
|
video.signature signature,
|
|
video.signature signature,
|
|
#素材id
|
|
#素材id
|
|
- CASE
|
|
|
|
- WHEN cmi.material_name IS NOT NULL THEN
|
|
|
|
- cmi.material_name
|
|
|
|
- ELSE
|
|
|
|
- video.filename
|
|
|
|
- END AS video_name,
|
|
|
|
|
|
+ video.filename AS video_name,
|
|
report.cost,
|
|
report.cost,
|
|
report.`show`,
|
|
report.`show`,
|
|
report.avg_show_cost,
|
|
report.avg_show_cost,
|
|
@@ -634,7 +629,9 @@ FROM (
|
|
image_mode,
|
|
image_mode,
|
|
inventory
|
|
inventory
|
|
) report
|
|
) report
|
|
- LEFT JOIN (select advertiser_id,signature,material_id,filename,image_url from `media_api`.bytedance_file_image_get group by advertiser_id,signature,material_id,filename,image_url) video
|
|
|
|
|
|
+ LEFT JOIN (select advertiser_id,signature,material_id,filename,image_url
|
|
|
|
+ from `media_api`.bytedance_file_image_get group by advertiser_id,signature,material_id,filename,image_url)
|
|
|
|
+ video
|
|
ON report.account_id = video.advertiser_id AND report.material_id = video.material_id
|
|
ON report.account_id = video.advertiser_id AND report.material_id = video.material_id
|
|
LEFT JOIN `jeecg-boot`.ctop_user_allocation cua
|
|
LEFT JOIN `jeecg-boot`.ctop_user_allocation cua
|
|
ON report.account_id = cua.account_id
|
|
ON report.account_id = cua.account_id
|