Authored by Lixiaodi

bug修改

@@ -50,6 +50,19 @@ public class ProductSearchController { @@ -50,6 +50,19 @@ public class ProductSearchController {
50 @RequestParam(value = "limit", required = false)Integer limit, 50 @RequestParam(value = "limit", required = false)Integer limit,
51 @RequestParam(value = "page", required = false)Integer page 51 @RequestParam(value = "page", required = false)Integer page
52 ) { 52 ) {
  53 + if (type != null) {
  54 + if (type == 0) {
  55 + productPool = "2";
  56 + order = "pools.id:asc";
  57 + }
  58 + if (type == 1) {
  59 + productPool = "4";
  60 + order = "pools.id:asc";
  61 + }
  62 + if (type == 2) {
  63 + isSoonSale = "Y";
  64 + }
  65 + }
53 SortIdLevel sortIdLevel = productSearchService.getSortLevelById(sort); 66 SortIdLevel sortIdLevel = productSearchService.getSortLevelById(sort);
54 ProductSearchReq req = new ProductSearchReq().setOrder(order).setId(id).setPool(productPool).setBrand(brand).setMidSort(sortIdLevel.getMidSortId()).setMaxSort(sortIdLevel.getMaxSortId()) 67 ProductSearchReq req = new ProductSearchReq().setOrder(order).setId(id).setPool(productPool).setBrand(brand).setMidSort(sortIdLevel.getMidSortId()).setMaxSort(sortIdLevel.getMaxSortId())
55 .setSeries(series).setGender(gender).setSize(size).setIsSoonSale(isSoonSale).setViewNum(limit).setPage(page).setIsIdFilter(type); 68 .setSeries(series).setGender(gender).setSize(size).setIsSoonSale(isSoonSale).setViewNum(limit).setPage(page).setIsIdFilter(type);