...
|
...
|
@@ -95,10 +95,10 @@ public class SplitSelectionsService extends BaseService { |
|
|
|
|
|
public JSONObject getCommonFilters(Map<String, String> paramMap) {
|
|
|
List<IAggregation> aggregations = this.getCommonAggregations(paramMap);
|
|
|
return this.getCommonFilters(paramMap, aggregations);
|
|
|
return this.getFiltersResults(paramMap, aggregations);
|
|
|
}
|
|
|
|
|
|
public JSONObject getCommonFilters(Map<String, String> paramMap, List<IAggregation> aggregations) {
|
|
|
public JSONObject getFiltersResults(Map<String, String> paramMap, List<IAggregation> aggregations) {
|
|
|
try {
|
|
|
// 1)构造搜索参数
|
|
|
SearchParam searchParam = searchParamHelper.buildDefault(paramMap);
|
...
|
...
|
@@ -162,7 +162,12 @@ public class SplitSelectionsService extends BaseService { |
|
|
aggregations.add(aggregationFactoryService.getStyleAggregation(paramMap));
|
|
|
return aggregations;
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 优惠券页面时用的筛选项
|
|
|
* @param paramMap
|
|
|
* @return
|
|
|
*/
|
|
|
public List<IAggregation> getCouponAggregations(Map<String, String> paramMap) {
|
|
|
List<IAggregation> aggregations = new ArrayList<>();
|
|
|
// 1)性别
|
...
|
...
|
@@ -185,6 +190,30 @@ public class SplitSelectionsService extends BaseService { |
|
|
aggregations.add(aggregationFactoryService.getStyleAggregation(paramMap));
|
|
|
return aggregations;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 店铺、新频到着的筛选项列表
|
|
|
* @param paramMap
|
|
|
* @return
|
|
|
*/
|
|
|
public List<IAggregation> getRNAggregations(Map<String, String> paramMap) {
|
|
|
List<IAggregation> aggregations = new ArrayList<>();
|
|
|
// 1)性别
|
|
|
aggregations.add(aggregationFactoryService.getGenderNewAggregation());
|
|
|
// 2)品类
|
|
|
aggregations.add(aggregationFactoryService.getSortGroupAggregation(paramMap));
|
|
|
// 3)品牌
|
|
|
aggregations.add(aggregationFactoryService.getBrandAggregation(paramMap));
|
|
|
// 4)颜色
|
|
|
aggregations.add(aggregationFactoryService.getColorAggregation(paramMap));
|
|
|
// 5)尺码
|
|
|
aggregations.add(aggregationFactoryService.getSizeAggregation());
|
|
|
// 6)价格
|
|
|
aggregations.add(aggregationFactoryService.getPriceAggregation());
|
|
|
// 7)折扣
|
|
|
aggregations.add(aggregationFactoryService.getDiscountAggregation());
|
|
|
return aggregations;
|
|
|
}
|
|
|
|
|
|
public JSONArray getRecommendBrands(Map<String, String> paramMap) {
|
|
|
SearchApiResult searchApiResult = aggRecommendService.aggRecommendBrand(paramMap);
|
...
|
...
|
|