Pārlūkot izejas kodu

hot 池候选过滤 score > minScore 改为 score >= minScore

minScore 默认 0.0,但 SQL 用严格大于会把 score=0 的视频排除。
受 α=0.5 强衰减 + ROUND(weighted_score,3) 影响,>=6 天未在上游
ODPS 出现的视频累计分会被四舍五入到 0.000,占 dt 候选约 65%。
改为 >= 让这部分老但仍有 rovn 的视频回到候选池。
刘立冬 1 dienu atpakaļ
vecāks
revīzija
54a60629a0

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

@@ -101,7 +101,7 @@
     <select id="getVideoCount" resultType="java.lang.Integer">
     <select id="getVideoCount" resultType="java.lang.Integer">
         select count(1)
         select count(1)
         from content_platform_video_agg
         from content_platform_video_agg
-        where dt = #{dt} and status = 1 and score > #{minScore}
+        where dt = #{dt} and status = 1 and score >= #{minScore}
         <if test="param.title!= null and param.title!= ''">
         <if test="param.title!= null and param.title!= ''">
             and title like concat('%', #{param.title}, '%')
             and title like concat('%', #{param.title}, '%')
         </if>
         </if>
@@ -116,7 +116,7 @@
         left join content_platform_video_datastat_agg datastat
         left join content_platform_video_datastat_agg datastat
             on datastat.dt = #{datastatDt} and datastat.type = #{type} and datastat.channel = #{channel}
             on datastat.dt = #{datastatDt} and datastat.type = #{type} and datastat.channel = #{channel}
                    and datastat.strategy = #{strategy} and datastat.video_id = video.video_id
                    and datastat.strategy = #{strategy} and datastat.video_id = video.video_id
-        where video.dt = #{dt} and video.status = 1 and video.score > #{minScore}
+        where video.dt = #{dt} and video.status = 1 and video.score >= #{minScore}
         <if test="param.title!= null and param.title!= ''">
         <if test="param.title!= null and param.title!= ''">
             and video.title like concat('%', #{param.title}, '%')
             and video.title like concat('%', #{param.title}, '%')
         </if>
         </if>