|
@@ -104,7 +104,7 @@
|
|
left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId} and a.type = #{imageMode})as video
|
|
left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId} and a.type = #{imageMode})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 =1
|
|
|
|
|
|
+ where cmi.id is not null
|
|
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
|
|
@@ -133,7 +133,7 @@
|
|
left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId} and a.type = #{imageMode})as video
|
|
left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId} and a.type = #{imageMode})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 = 1
|
|
|
|
|
|
+ where cmi.id is not null
|
|
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
|