wangyunpeng 1 week ago
parent
commit
3e317abcba

+ 4 - 6
api-module/src/main/resources/mapper/contentplatform/ext/ContentPlatformPlanMapperExt.xml

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