|
@@ -76,6 +76,7 @@
|
|
left join ctop_material_info cmi on video.signature = cmi.code and cmi.project_id = #{projectId}
|
|
left join ctop_material_info cmi on video.signature = cmi.code and cmi.project_id = #{projectId}
|
|
where account_id = #{accountId}
|
|
where account_id = #{accountId}
|
|
and cmi.code is not null
|
|
and cmi.code is not null
|
|
|
|
+ and cmi.status = 1
|
|
and cmi.offline_flag = 0
|
|
and cmi.offline_flag = 0
|
|
and material_upload_time >= #{startTime}
|
|
and material_upload_time >= #{startTime}
|
|
and material_upload_time <= #{endTime}
|
|
and material_upload_time <= #{endTime}
|
|
@@ -100,7 +101,7 @@
|
|
left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId})as video
|
|
left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId})as video
|
|
on a.material_id = video.material_id
|
|
on a.material_id = video.material_id
|
|
left join ctop_material_info cmi on cmi.code = video.signature and cmi.project_id = #{projectId}
|
|
left join ctop_material_info cmi on cmi.code = video.signature and cmi.project_id = #{projectId}
|
|
- where cmi.id is not null
|
|
|
|
|
|
+ where cmi.id =1
|
|
and video.id is not null
|
|
and video.id is not null
|
|
and cmi.offline_flag = 0
|
|
and cmi.offline_flag = 0
|
|
and a.totalCost >= 500
|
|
and a.totalCost >= 500
|
|
@@ -128,7 +129,7 @@
|
|
left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId})as video
|
|
left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId})as video
|
|
on a.material_id = video.material_id
|
|
on a.material_id = video.material_id
|
|
left join ctop_material_info cmi on cmi.code = video.signature and cmi.project_id = #{projectId}
|
|
left join ctop_material_info cmi on cmi.code = video.signature and cmi.project_id = #{projectId}
|
|
- where cmi.id is not null
|
|
|
|
|
|
+ where cmi.id = 1
|
|
and video.id is not null
|
|
and video.id is not null
|
|
and cmi.offline_flag = 0
|
|
and cmi.offline_flag = 0
|
|
and a.totalCost <= 100
|
|
and a.totalCost <= 100
|