|
@@ -482,7 +482,7 @@
|
|
left join ctop_bytedance_creative b on a.creative_id = b.id
|
|
left join ctop_bytedance_creative b on a.creative_id = b.id
|
|
left join ctop_bytedance_video_info c on b.video_id = c.id
|
|
left join ctop_bytedance_video_info c on b.video_id = c.id
|
|
left join ctop_material_info d on c.signature = d.code
|
|
left join ctop_material_info d on c.signature = d.code
|
|
- left join ctop_material_ascription e on on d.id = e.material_id
|
|
|
|
|
|
+ left join ctop_material_ascription e on d.id = e.material_id
|
|
left join sys_user f1 on e.clip_id = f1.id
|
|
left join sys_user f1 on e.clip_id = f1.id
|
|
left join sys_user f2 on e.shot_id = f2.id
|
|
left join sys_user f2 on e.shot_id = f2.id
|
|
left join sys_user f3 on e.plan_id = f3.id
|
|
left join sys_user f3 on e.plan_id = f3.id
|
|
@@ -494,7 +494,7 @@
|
|
date_format(d.create_time, '%Y-%m-%d') >= #{startDate} and
|
|
date_format(d.create_time, '%Y-%m-%d') >= #{startDate} and
|
|
date_format(d.update_time, '%Y-%m-%d') <= #{endDate}
|
|
date_format(d.update_time, '%Y-%m-%d') <= #{endDate}
|
|
group by c.signature
|
|
group by c.signature
|
|
- having sum(a.charge) >= 5000
|
|
|
|
|
|
+ having sum(a.cost) >= 5000
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 头条根据plan_id获取视频总消耗 -->
|
|
<!-- 头条根据plan_id获取视频总消耗 -->
|