|
@@ -4,6 +4,7 @@ import java.util.Map; |
|
@@ -4,6 +4,7 @@ import java.util.Map; |
4
|
|
4
|
|
5
|
import javax.servlet.http.HttpServletRequest;
|
5
|
import javax.servlet.http.HttpServletRequest;
|
6
|
|
6
|
|
|
|
7
|
+import com.yoho.search.common.SearchDynamicConfigService;
|
7
|
import org.springframework.beans.factory.annotation.Autowired;
|
8
|
import org.springframework.beans.factory.annotation.Autowired;
|
8
|
import org.springframework.stereotype.Controller;
|
9
|
import org.springframework.stereotype.Controller;
|
9
|
import org.springframework.web.bind.annotation.RequestMapping;
|
10
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -25,6 +26,8 @@ public class AggProductListController { |
|
@@ -25,6 +26,8 @@ public class AggProductListController { |
25
|
|
26
|
|
26
|
@Autowired
|
27
|
@Autowired
|
27
|
private AggProductListService aggProductListService;
|
28
|
private AggProductListService aggProductListService;
|
|
|
29
|
+ @Autowired
|
|
|
30
|
+ private SearchDynamicConfigService searchDynamicConfigService;
|
28
|
|
31
|
|
29
|
/**
|
32
|
/**
|
30
|
* 聚合商品列表[按品牌或品类聚合-支持个性化且order无效]
|
33
|
* 聚合商品列表[按品牌或品类聚合-支持个性化且order无效]
|
|
@@ -49,6 +52,9 @@ public class AggProductListController { |
|
@@ -49,6 +52,9 @@ public class AggProductListController { |
49
|
@ResponseBody
|
52
|
@ResponseBody
|
50
|
public SearchApiResult aggProductListByBrand(HttpServletRequest request) {
|
53
|
public SearchApiResult aggProductListByBrand(HttpServletRequest request) {
|
51
|
Map<String, String> paramMap = HttpServletRequestUtils.transParamType(request);
|
54
|
Map<String, String> paramMap = HttpServletRequestUtils.transParamType(request);
|
|
|
55
|
+ if (searchDynamicConfigService.aggBrandProductNew()) {
|
|
|
56
|
+ return aggProductListService.aggProductListByBrandV2(paramMap);
|
|
|
57
|
+ }
|
52
|
return aggProductListService.aggProductListByBrand(paramMap);
|
58
|
return aggProductListService.aggProductListByBrand(paramMap);
|
53
|
}
|
59
|
}
|
54
|
|
60
|
|