|
@@ -301,7 +301,7 @@
|
|
(SELECT * from base_report_bytedance_video_daily where stat_datetime=#{statDate}) t1
|
|
(SELECT * from base_report_bytedance_video_daily where stat_datetime=#{statDate}) t1
|
|
LEFT JOIN (select material_id,signature,video_url from ctop_bytedance_video_info where material_id in (SELECT DISTINCT material_id from base_report_bytedance_video_daily where stat_datetime=#{statDate})
|
|
LEFT JOIN (select material_id,signature,video_url from ctop_bytedance_video_info where material_id in (SELECT DISTINCT material_id from base_report_bytedance_video_daily where stat_datetime=#{statDate})
|
|
) t2 ON t1.material_id = t2.material_id
|
|
) t2 ON t1.material_id = t2.material_id
|
|
- LEFT JOIN ctop_material_ascription t3 on t2.signature=t3.code
|
|
|
|
|
|
+ LEFT JOIN ctop_material_ascription t3 on t2.signature=t3.material_id
|
|
LEFT JOIN ctop_material_info t4 on t4.code=t2.signature
|
|
LEFT JOIN ctop_material_info t4 on t4.code=t2.signature
|
|
LEFT JOIN (SELECT account_id, advertiser_id,project_id,auth_name from ctop_user_allocation where account_id in (SELECT DISTINCT account_id from base_report_bytedance_video_daily where stat_datetime=#{statDate})) t5 on t1.account_id=t5.account_id
|
|
LEFT JOIN (SELECT account_id, advertiser_id,project_id,auth_name from ctop_user_allocation where account_id in (SELECT DISTINCT account_id from base_report_bytedance_video_daily where stat_datetime=#{statDate})) t5 on t1.account_id=t5.account_id
|
|
GROUP BY t1.id
|
|
GROUP BY t1.id
|