|
@@ -74,7 +74,10 @@
|
|
(select count(1) from ctop_bytedance_video_slogen_info s where s.video_code = video.signature) as slogens,
|
|
(select count(1) from ctop_bytedance_video_slogen_info s where s.video_code = video.signature) as slogens,
|
|
'video' As materialType
|
|
'video' As materialType
|
|
from ctop_bytedance_video_info video
|
|
from ctop_bytedance_video_info video
|
|
- 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
|
|
|
|
+ <if test="projectId !=null and projectId != ''">
|
|
|
|
+ and cmi.project_id = #{projectId}
|
|
|
|
+ </if>
|
|
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.status = 1
|
|
@@ -104,7 +107,10 @@
|
|
order by sum(report.cost) desc ) a
|
|
order by sum(report.cost) desc ) a
|
|
left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId} and a.type = #{imageMode} and a.status = 1)as video
|
|
left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId} and a.type = #{imageMode} and a.status = 1)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
|
|
|
|
+ <if test="projectId !=null and projectId != ''">
|
|
|
|
+ and cmi.project_id = #{projectId}
|
|
|
|
+ </if>
|
|
where cmi.id is not null
|
|
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
|
|
@@ -133,7 +139,10 @@
|
|
order by sum(report.cost) desc ) a
|
|
order by sum(report.cost) desc ) a
|
|
left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId} and a.type = #{imageMode} and a.status = 1)as video
|
|
left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId} and a.type = #{imageMode} and a.status = 1)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
|
|
|
|
+ <if test="projectId !=null and projectId != ''">
|
|
|
|
+ and cmi.project_id = #{projectId}
|
|
|
|
+ </if>
|
|
where cmi.id is not null
|
|
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
|