Authored by Lixiaodi

增加上下架状态

... ... @@ -36,6 +36,9 @@ public class ProductInfo {
@JSONField(name="max_price")
private BigDecimal maxPrice;
@JSONField(name="shelve_status")
private Integer shelveStatus;
public BigDecimal getMinPrice() {
return minPrice;
... ... @@ -116,4 +119,13 @@ public class ProductInfo {
public void setLeastPrice(BigDecimal leastPrice) {
this.leastPrice = leastPrice;
}
public Integer getShelveStatus() {
return shelveStatus;
}
public void setShelveStatus(Integer shelveStatus) {
this.shelveStatus = shelveStatus;
}
}
... ...
... ... @@ -96,6 +96,7 @@ public class ProductServiceImpl implements ProductService{
productInfo.setProductCode(product.getProductCode());
productInfo.setMaxPrice(product.getMaxPrice());
productInfo.setMinPrice(product.getMinPrice());
productInfo.setShelveStatus(product.getShelveStatus());
productInfo.setSaleTime((product.getSaleTime() == null || product.getSaleTime().equals(0)) ? "0" : DateUtil.getDateString(product.getSaleTime(), DateUtil.YYYY_MM_DD_DOT));
setBrand(productInfo, product.getBrandId());
setSeries(productInfo, product.getSeriesId());
... ...