Authored by hugufei

fix 实时推荐skn的顺序BUG

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