|
@@ -529,8 +529,7 @@
|
|
|
select count(1)
|
|
select count(1)
|
|
|
from content_platform_video_collect collect
|
|
from content_platform_video_collect collect
|
|
|
left join content_platform_video_agg video
|
|
left join content_platform_video_agg video
|
|
|
- on collect.video_id = video.video_id and collect.is_delete = 0 and video.dt = #{dt} and video.status = 1
|
|
|
|
|
- and video.score > #{minScore} and collect.create_account_id = #{createAccountId}
|
|
|
|
|
|
|
+ on collect.video_id = video.video_id and video.dt = #{dt} and video.status = 1 and video.score > #{minScore}
|
|
|
and (video.source = 0 or video.video_id in (select video_id
|
|
and (video.source = 0 or video.video_id in (select video_id
|
|
|
from content_platform_video_account_rel
|
|
from content_platform_video_account_rel
|
|
|
where dt = #{dt} and account_id = #{createAccountId}))
|
|
where dt = #{dt} and account_id = #{createAccountId}))
|
|
@@ -550,7 +549,7 @@
|
|
|
join content_platform_video_tag videoTag
|
|
join content_platform_video_tag videoTag
|
|
|
on videoTag.dt = video.dt and videoTag.video_id = video.video_id and ${videoTagFilter}
|
|
on videoTag.dt = video.dt and videoTag.video_id = video.video_id and ${videoTagFilter}
|
|
|
</if>
|
|
</if>
|
|
|
- where collect.is_delete = 0
|
|
|
|
|
|
|
+ where collect.is_delete = 0 and collect.create_account_id = #{createAccountId}
|
|
|
<if test="videoExist != null">
|
|
<if test="videoExist != null">
|
|
|
and video.video_id is not null
|
|
and video.video_id is not null
|
|
|
</if>
|
|
</if>
|
|
@@ -570,8 +569,7 @@
|
|
|
select collect.video_id
|
|
select collect.video_id
|
|
|
from content_platform_video_collect collect
|
|
from content_platform_video_collect collect
|
|
|
left join content_platform_video_agg video
|
|
left join content_platform_video_agg video
|
|
|
- on collect.video_id = video.video_id and collect.is_delete = 0 and video.dt = #{dt} and video.status = 1
|
|
|
|
|
- and video.score > #{minScore} and collect.create_account_id = #{createAccountId}
|
|
|
|
|
|
|
+ on collect.video_id = video.video_id and video.dt = #{dt} and video.status = 1 and video.score > #{minScore}
|
|
|
and (video.source = 0 or video.video_id in (select video_id
|
|
and (video.source = 0 or video.video_id in (select video_id
|
|
|
from content_platform_video_account_rel
|
|
from content_platform_video_account_rel
|
|
|
where dt = #{dt} and account_id = #{createAccountId}))
|
|
where dt = #{dt} and account_id = #{createAccountId}))
|
|
@@ -594,7 +592,7 @@
|
|
|
join content_platform_video_tag videoTag
|
|
join content_platform_video_tag videoTag
|
|
|
on videoTag.dt = video.dt and videoTag.video_id = video.video_id and ${videoTagFilter}
|
|
on videoTag.dt = video.dt and videoTag.video_id = video.video_id and ${videoTagFilter}
|
|
|
</if>
|
|
</if>
|
|
|
- where collect.is_delete = 0
|
|
|
|
|
|
|
+ where collect.is_delete = 0 and collect.create_account_id = #{createAccountId}
|
|
|
<if test="videoExist != null">
|
|
<if test="videoExist != null">
|
|
|
and video.video_id is not null
|
|
and video.video_id is not null
|
|
|
</if>
|
|
</if>
|