Authored by hugufei

fix 实时推荐skn的顺序BUG

@@ -105,13 +105,13 @@ public class UserRecallCacheBean extends AbstractCacheBean<UserRecallRequest, Us @@ -105,13 +105,13 @@ public class UserRecallCacheBean extends AbstractCacheBean<UserRecallRequest, Us
105 105
106 //2、根据推荐的skn构造结果 106 //2、根据推荐的skn构造结果
107 begin = System.currentTimeMillis(); 107 begin = System.currentTimeMillis();
108 - List<RecallRequestResponse> recommendSknRequestResponses = sknRecallCacheBean.batchRecallRecommedSknList(userRecallRequest,userPersonalFactor.getRecommendSknList(),6); 108 + List<RecallRequestResponse> recommendSknRequestResponses = sknRecallCacheBean.batchRecallRecommedSknList(userRecallRequest,userPersonalFactor.getRecommendSknList(),8);
109 RECALL_NEW_LOGGER.info("UserRecallRequestResponseCacheBean[3]-batchRecallRecommedSknList,cost is [{}]", System.currentTimeMillis() - begin); 109 RECALL_NEW_LOGGER.info("UserRecallRequestResponseCacheBean[3]-batchRecallRecommedSknList,cost is [{}]", System.currentTimeMillis() - begin);
110 110
111 //3、构造最终返回结果 111 //3、构造最终返回结果
112 List<RecallRequestResponse> batchRequestResults = new ArrayList<>(); 112 List<RecallRequestResponse> batchRequestResults = new ArrayList<>();
  113 + batchRequestResults.addAll(recommendSknRequestResponses);//推荐的skn要保证有序,所以放前面
113 batchRequestResults.addAll(batchRecallRequestResponses); 114 batchRequestResults.addAll(batchRecallRequestResponses);
114 - batchRequestResults.addAll(recommendSknRequestResponses);  
115 115
116 //4、日志打印 116 //4、日志打印
117 if (userRecallRequest.openDetailLog()) { 117 if (userRecallRequest.openDetailLog()) {