...
|
...
|
@@ -38,6 +38,7 @@ public class ProductSearchController { |
|
|
public ApiResponse searchProductList(
|
|
|
@RequestParam(value = "type", required = false)Integer type,
|
|
|
@RequestParam(value = "order", required = false)String order,
|
|
|
@RequestParam(value = "product_id", required = false)String id,
|
|
|
@RequestParam(value = "productPool", required = false) String productPool,
|
|
|
@RequestParam(value = "sort", required = false)String sort,
|
|
|
@RequestParam(value = "brand", required = false)String brand,
|
...
|
...
|
@@ -50,8 +51,8 @@ public class ProductSearchController { |
|
|
@RequestParam(value = "page", required = false)Integer page
|
|
|
) {
|
|
|
SortIdLevel sortIdLevel = productSearchService.getSortLevelById(sort);
|
|
|
ProductSearchReq req = new ProductSearchReq().setOrder(order).setPool(productPool).setBrand(brand).setMidSort(sortIdLevel.getMidSortId()).setMaxSort(sortIdLevel.getMaxSortId())
|
|
|
.setSeries(series).setGender(gender).setSize(size).setIsSoonSale(isSoonSale).setViewNum(limit).setPage(page);
|
|
|
ProductSearchReq req = new ProductSearchReq().setOrder(order).setId(id).setPool(productPool).setBrand(brand).setMidSort(sortIdLevel.getMidSortId()).setMaxSort(sortIdLevel.getMaxSortId())
|
|
|
.setSeries(series).setGender(gender).setSize(size).setIsSoonSale(isSoonSale).setViewNum(limit).setPage(page).setIsIdFilter(type);
|
|
|
searchHelpService.setQuery(query, req);
|
|
|
LOG.info("in method=ufo.product.search.list req={}", req.toString());
|
|
|
|
...
|
...
|
|