...
|
...
|
@@ -50,7 +50,6 @@ public class QueryUserPersionalFactorBean { |
|
|
UserPersonalFactorRspNew userFactorNew = userComponent.queryUserPersionalFactorNew(userRecallRequest.getUid(), userRecallRequest.getUdid(),pageFactor);
|
|
|
RECALL_NEW_LOGGER.info("queryUserPersionalFactorNew . cost is[{}]", System.currentTimeMillis() - begin);
|
|
|
//3、join获取最终的结果
|
|
|
begin = System.currentTimeMillis();
|
|
|
List<SortBrand> sortBrandList = this.getSortBrandListWithSort(pageFactor, userFactorNew);
|
|
|
List<SortPriceAreas> sortPriceAreasList = this.getSortPriceAreasListWithSort(pageFactor, userFactorNew);
|
|
|
//4、构造UserPersonalFactorRspNew
|
...
|
...
|
@@ -72,12 +71,17 @@ public class QueryUserPersionalFactorBean { |
|
|
* @return
|
|
|
*/
|
|
|
private List<SortBrand> getSortBrandListWithSort(PagePersonalFactor pageFactor, UserPersonalFactorRspNew userFactorNew){
|
|
|
//1、返回结果定义
|
|
|
List<SortBrand> results = new ArrayList<>();
|
|
|
|
|
|
//2、构造brand2MiSortIdsMap
|
|
|
List<PageBrandSorts> brandSortsList = pageFactor.getBrandSortsList();
|
|
|
Map<Integer,List<Integer>> brand2MiSortIdsMap = new HashMap<>(brandSortsList.size());
|
|
|
Map<Integer,List<Integer>> brand2MiSortIdsMap = new HashMap<>();
|
|
|
for (PageBrandSorts pageBrandSorts : brandSortsList) {
|
|
|
brand2MiSortIdsMap.put(pageBrandSorts.getBrandId(), pageBrandSorts.getMisorts());
|
|
|
}
|
|
|
List<SortBrand> results = new ArrayList<>();
|
|
|
|
|
|
//3、构建SortBrands
|
|
|
int maxJoinSortBrandCount = searchDynamicConfigService.searchPersionalNewStrategyMaxJoinSortBrandCount();
|
|
|
for (SortBrand sortBrand : userFactorNew.getSortBrandList()) {
|
|
|
if(!brand2MiSortIdsMap.containsKey(sortBrand.getBrandId())){
|
...
|
...
|
|