Authored by caoyan

二手商品搜索列表

@@ -375,10 +375,11 @@ public class ProductSearchController { @@ -375,10 +375,11 @@ public class ProductSearchController {
375 @IgnoreSession 375 @IgnoreSession
376 @Cachable(expire = 600) 376 @Cachable(expire = 600)
377 public ApiResponse searchSecondhandSkupList(@RequestParam(value = "preSale_flag", required = false)Integer preSaleFlag, 377 public ApiResponse searchSecondhandSkupList(@RequestParam(value = "preSale_flag", required = false)Integer preSaleFlag,
  378 + @RequestParam(value = "productPool", required = false) String productPool,
378 @RequestParam(value = "limit", required = false)Integer limit, 379 @RequestParam(value = "limit", required = false)Integer limit,
379 @RequestParam(value = "page", required = false)Integer page) { 380 @RequestParam(value = "page", required = false)Integer page) {
380 LOG.info("in method=ufo.product.search.secondhand.skupList preSale_flag={}", preSaleFlag); 381 LOG.info("in method=ufo.product.search.secondhand.skupList preSale_flag={}", preSaleFlag);
381 - ProductSearchReq req = new ProductSearchReq().setViewNum(limit).setPage(page).setPreSaleFlag(preSaleFlag); 382 + ProductSearchReq req = new ProductSearchReq().setViewNum(limit).setPage(page).setPreSaleFlag(preSaleFlag).setPool(productPool);
382 JSONObject resp = productSearchService.searchSecondhandSkupList(req); 383 JSONObject resp = productSearchService.searchSecondhandSkupList(req);
383 return new ApiResponse.ApiResponseBuilder().code(200).message("secondhand skupList.").data(resp).build(); 384 return new ApiResponse.ApiResponseBuilder().code(200).message("secondhand skupList.").data(resp).build();
384 } 385 }