Showing
1 changed file
with
23 additions
and
2 deletions
@@ -21,8 +21,29 @@ class RecallConfigSortBrandService { | @@ -21,8 +21,29 @@ class RecallConfigSortBrandService { | ||
21 | public List<SortBrand> queryConfigSortBrand(PagePersonalFactor pageFactor, Set<String> filterSortBrandKeys, int size) { | 21 | public List<SortBrand> queryConfigSortBrand(PagePersonalFactor pageFactor, Set<String> filterSortBrandKeys, int size) { |
22 | //return new ArrayList<>(); | 22 | //return new ArrayList<>(); |
23 | List<SortBrand> pageSortBrands = new ArrayList<>(); | 23 | List<SortBrand> pageSortBrands = new ArrayList<>(); |
24 | - pageSortBrands.addAll(pageFactor.getSortBrandList()); | ||
25 | - Collections.shuffle(pageSortBrands); | 24 | + if(pageFactor.getMisortIds().contains(26)){ |
25 | + if(pageFactor.getBrandIds().contains(650)){ | ||
26 | + pageSortBrands.add(new SortBrand(26,650)); | ||
27 | + } | ||
28 | + if(pageFactor.getBrandIds().contains(661)){ | ||
29 | + pageSortBrands.add(new SortBrand(26,661)); | ||
30 | + } | ||
31 | + if(pageFactor.getBrandIds().contains(336)){ | ||
32 | + pageSortBrands.add(new SortBrand(26,336)); | ||
33 | + } | ||
34 | + if(pageFactor.getBrandIds().contains(518)){ | ||
35 | + pageSortBrands.add(new SortBrand(26,518)); | ||
36 | + } | ||
37 | + if(pageFactor.getBrandIds().contains(417)){ | ||
38 | + pageSortBrands.add(new SortBrand(26,417)); | ||
39 | + } | ||
40 | + if(pageFactor.getBrandIds().contains(218)){ | ||
41 | + pageSortBrands.add(new SortBrand(26,218)); | ||
42 | + } | ||
43 | + } | ||
44 | +// pageSortBrands.addAll(pageFactor.getSortBrandList()); | ||
45 | +// Collections.shuffle(pageSortBrands); | ||
46 | +// return CollectionUtils.safeSubList(pageSortBrands, 0, size); | ||
26 | return CollectionUtils.safeSubList(pageSortBrands, 0, size); | 47 | return CollectionUtils.safeSubList(pageSortBrands, 0, size); |
27 | } | 48 | } |
28 | } | 49 | } |
-
Please register or login to post a comment