Authored by mali

二手频道去掉二手

... ... @@ -365,7 +365,7 @@ public class ProductSearchController {
@RequestParam(value = "price", required = false) String price,
@RequestParam(value = "maxSot", required = false) String maxSort,
@RequestParam(value = "order", required = false) String order) {
ProductSearchReq req = new ProductSearchReq().setViewNum(limit).setPage(page).setPreSaleFlag(preSaleFlag).setBusinessClient(businessClient)
ProductSearchReq req = new ProductSearchReq().setViewNum(limit).setPage(page).setInitPreSaleFlag(preSaleFlag).setBusinessClient(businessClient)
.setPool(productPool).setGender(gender).setBrand(brand).setSize(size).setPrice(price).setMaxSort(maxSort).setOrder(order);
LOG.info("in method=ufo.product.search.secondhand.skupList req={}", req);
JSONObject resp = productSearchService.searchSecondhandSkupList(req);
... ... @@ -384,7 +384,7 @@ public class ProductSearchController {
@RequestParam(value = "size", required = false) String size,
@RequestParam(value = "price", required = false) String price,
@RequestParam(value = "maxSort", required = false) String maxSort) {
ProductSearchReq req = new ProductSearchReq().setPreSaleFlag(preSaleFlag).setBusinessClient(businessClient).setPool(productPool)
ProductSearchReq req = new ProductSearchReq().setInitPreSaleFlag(preSaleFlag).setBusinessClient(businessClient).setPool(productPool)
.setGender(gender).setBrand(brand).setSize(size).setPrice(price).setMaxSort(maxSort);
LOG.info("in method=ufo.product.search.secondhand.skupList req={}", req);
SearchProductListFilterResp resp = productSearchService.searchSecondhandSkupListFilter(req);
... ...
package com.yohoufo.product.request;
import com.alibaba.fastjson.JSONObject;
import com.yohobuy.ufo.model.order.constants.SkupType;
import org.apache.commons.lang3.StringUtils;
public class ProductSearchReq {
... ... @@ -275,6 +277,16 @@ public class ProductSearchReq {
return this;
}
public ProductSearchReq setInitPreSaleFlag(String preSaleFlag) { // 默认全新瑕疵
if (StringUtils.isEmpty(preSaleFlag)) {
this.preSaleFlag = String.valueOf(SkupType.FLAW.getCode());
} else {
this.preSaleFlag = preSaleFlag;
}
return this;
}
public String getPrice() {
return price;
}
... ...