Просмотр исходного кода

Merge branch 'cooperation_video_candidate_pool_improved_lld_0509' into test

刘立冬 3 дней назад
Родитель
Сommit
30d57bccca

+ 5 - 4
api-module/src/main/java/com/tzld/piaoquan/api/service/contentplatform/impl/ContentPlatformPlanServiceImpl.java

@@ -606,7 +606,8 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
         return gzhPlanMapper.selectByExample(example);
     }
 
-    private static final int RECOMMEND_CANDIDATE_LIMIT = 500;
+    private static final int DEMAND_CANDIDATE_LIMIT = 2000;
+    private static final int HOT_CANDIDATE_LIMIT = 10000;
     private static final String DEMAND_STRATEGY_PRIOR = "先验需求";
     private static final String DEMAND_STRATEGY_POSTERIOR = "后验需求";
     private static final String SOURCE_PRIOR = "prior";
@@ -731,9 +732,9 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
      * 缺路顺位补;先到先得(顺序:prior > posterior > hot)。
      */
     private Page<VideoContentItemVO> getInterleavedPage(VideoContentListParam param, ContentPlatformAccount user) {
-        List<VideoContentItemVO> prior = fetchPriorCandidates(user, RECOMMEND_CANDIDATE_LIMIT);
-        List<VideoContentItemVO> posterior = fetchPosteriorCandidates(user, RECOMMEND_CANDIDATE_LIMIT);
-        List<VideoContentItemVO> hot = fetchHotCandidates(param, user, RECOMMEND_CANDIDATE_LIMIT);
+        List<VideoContentItemVO> prior = fetchPriorCandidates(user, DEMAND_CANDIDATE_LIMIT);
+        List<VideoContentItemVO> posterior = fetchPosteriorCandidates(user, DEMAND_CANDIDATE_LIMIT);
+        List<VideoContentItemVO> hot = fetchHotCandidates(param, user, HOT_CANDIDATE_LIMIT);
         for (VideoContentItemVO v : prior) v.setSource(SOURCE_PRIOR);
         for (VideoContentItemVO v : posterior) v.setSource(SOURCE_POSTERIOR);
         for (VideoContentItemVO v : hot) v.setSource(SOURCE_HOT);