...
|
...
|
@@ -50,6 +50,19 @@ public class ProductSearchController { |
|
|
@RequestParam(value = "limit", required = false)Integer limit,
|
|
|
@RequestParam(value = "page", required = false)Integer page
|
|
|
) {
|
|
|
if (type != null) {
|
|
|
if (type == 0) {
|
|
|
productPool = "2";
|
|
|
order = "pools.id:asc";
|
|
|
}
|
|
|
if (type == 1) {
|
|
|
productPool = "4";
|
|
|
order = "pools.id:asc";
|
|
|
}
|
|
|
if (type == 2) {
|
|
|
isSoonSale = "Y";
|
|
|
}
|
|
|
}
|
|
|
SortIdLevel sortIdLevel = productSearchService.getSortLevelById(sort);
|
|
|
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);
|
...
|
...
|
|