|
@@ -113,10 +113,10 @@
|
|
|
report.account_id 'account_id'
|
|
|
from ctop_bytedance_report_material_daily report
|
|
|
left join ctop_user_allocation cua on cua.account_id = report.account_id
|
|
|
- left join (select distinct account_id,material_id,signature from ctop_bytedance_video_info ) cbvi
|
|
|
+ left join (select account_id,material_id,signature from ctop_bytedance_video_info where account_id = #{accountId}) cbvi
|
|
|
on report.account_id = cbvi.account_id and report.material_id = cbvi.material_id
|
|
|
left join ctop_bytedance_video_etl_info etlVideo on etlVideo.video_code = cbvi.signature
|
|
|
- left join ctop_material_info cmi on cmi.code = cbvi.signature and cmi.project_id = cua.project_id
|
|
|
+ left join ctop_material_info cmi on cmi.code = cbvi.signature
|
|
|
left join ctop_project cp on cp.id = cua.project_id
|
|
|
where 1 = 1
|
|
|
and report.stat_datetime = #{date}
|