|
@@ -273,9 +273,15 @@
|
|
</if>
|
|
</if>
|
|
group by signature) video
|
|
group by signature) video
|
|
on video.signature = report.signature
|
|
on video.signature = report.signature
|
|
- left join (SELECT id, photo_id from ctop_ai_creative_limit WHERE account_id = #{accountId}) t2
|
|
|
|
- on video.photo_id = t2.photo_id
|
|
|
|
where video.id is not null
|
|
where video.id is not null
|
|
|
|
+ and video.photo_id NOT IN (
|
|
|
|
+ SELECT
|
|
|
|
+ photo_id
|
|
|
|
+ FROM
|
|
|
|
+ ctop_ai_creative_limit
|
|
|
|
+ WHERE
|
|
|
|
+ account_id = #{accountId}
|
|
|
|
+ )
|
|
group by video.signature
|
|
group by video.signature
|
|
order by sum(report.charge) desc
|
|
order by sum(report.charge) desc
|
|
<if test="videoCnt!=null">
|
|
<if test="videoCnt!=null">
|