...
|
...
|
@@ -102,15 +102,15 @@ public class SearchLikeNotInShopService { |
|
|
List<List<Map<String, Object>>> queryResults = searchLikeHelper.queryProductLists(searchParams);
|
|
|
|
|
|
// 7、处理图片和行为的顺序
|
|
|
List<Map<String, Object>> diffShopImgSimilarProducts = searchLikeHelper.sortProductList(queryResults.get(0), diffShopImgSimilarSkns, viewNum / 2);
|
|
|
List<Map<String, Object>> diffShopImgSimilarProductsYoho = searchLikeHelper.sortProductList(queryResults.get(1), diffShopImgSimilarSknsYoho, viewNum / 2);
|
|
|
List<Map<String, Object>> diffShopImgSimilarProductsYoho = searchLikeHelper.sortProductList(queryResults.get(0), diffShopImgSimilarSknsYoho, viewNum / 2);
|
|
|
List<Map<String, Object>> diffShopImgSimilarProducts = searchLikeHelper.sortProductList(queryResults.get(1), diffShopImgSimilarSkns, viewNum / 2);
|
|
|
List<Map<String, Object>> diffShopActionSimilarProducts = searchLikeHelper.sortProductList(queryResults.get(2), diffShopActionSimilarSkns, viewNum / 2);
|
|
|
List<Map<String, Object>> charsetSimilarProducts = queryResults.get(3);
|
|
|
|
|
|
// 8、获取临时结果
|
|
|
List<Map<String, Object>> tempProductList = new ArrayList<>();
|
|
|
tempProductList.addAll(diffShopImgSimilarProducts);
|
|
|
tempProductList.addAll(diffShopImgSimilarProductsYoho);
|
|
|
tempProductList.addAll(diffShopImgSimilarProducts);
|
|
|
tempProductList.addAll(diffShopActionSimilarProducts);
|
|
|
tempProductList.addAll(charsetSimilarProducts);
|
|
|
if (tempProductList.size() > viewNum) {
|
...
|
...
|
|