Authored by caoyan

Merge branch 'dev_order' into test6.8.2

1 package com.yohoufo.product.model; 1 package com.yohoufo.product.model;
2 2
  3 +import java.math.BigDecimal;
  4 +
3 import com.alibaba.fastjson.JSONObject; 5 import com.alibaba.fastjson.JSONObject;
4 import com.alibaba.fastjson.annotation.JSONField; 6 import com.alibaba.fastjson.annotation.JSONField;
5 7
6 -import java.math.BigDecimal;  
7 -import java.util.List;  
8 -import java.util.Map;  
9 -  
10 /** 8 /**
11 * 商品尺寸信息VO 9 * 商品尺寸信息VO
12 * @author xieyong 10 * @author xieyong
@@ -46,6 +44,12 @@ public class GoodsSize { @@ -46,6 +44,12 @@ public class GoodsSize {
46 44
47 @JSONField(name="max_price") 45 @JSONField(name="max_price")
48 private BigDecimal maxPrice; 46 private BigDecimal maxPrice;
  47 +
  48 + @JSONField(name="suggest_low_price")
  49 + private BigDecimal suggestLowPrice;
  50 +
  51 + @JSONField(name="suggest_high_price")
  52 + private BigDecimal suggestHighPrice;
49 53
50 public BigDecimal getSellLeastPrice() { 54 public BigDecimal getSellLeastPrice() {
51 return sellLeastPrice; 55 return sellLeastPrice;
@@ -127,6 +131,22 @@ public class GoodsSize { @@ -127,6 +131,22 @@ public class GoodsSize {
127 this.maxPrice = maxPrice; 131 this.maxPrice = maxPrice;
128 } 132 }
129 133
  134 + public BigDecimal getSuggestLowPrice() {
  135 + return suggestLowPrice;
  136 + }
  137 +
  138 + public void setSuggestLowPrice(BigDecimal suggestLowPrice) {
  139 + this.suggestLowPrice = suggestLowPrice;
  140 + }
  141 +
  142 + public BigDecimal getSuggestHighPrice() {
  143 + return suggestHighPrice;
  144 + }
  145 +
  146 + public void setSuggestHighPrice(BigDecimal suggestHighPrice) {
  147 + this.suggestHighPrice = suggestHighPrice;
  148 + }
  149 +
130 @Override 150 @Override
131 public String toString() { 151 public String toString() {
132 return JSONObject.toJSONString(this); 152 return JSONObject.toJSONString(this);
@@ -589,6 +589,8 @@ public class ProductServiceImpl implements ProductService{ @@ -589,6 +589,8 @@ public class ProductServiceImpl implements ProductService{
589 goodsSize.setSkup(storagePrice == null ? 0 : storagePrice.getSkup()); 589 goodsSize.setSkup(storagePrice == null ? 0 : storagePrice.getSkup());
590 goodsSize.setSellLeastPrice(sellMinPrice); 590 goodsSize.setSellLeastPrice(sellMinPrice);
591 goodsSize.setMaxPrice(maxPrice); 591 goodsSize.setMaxPrice(maxPrice);
  592 + goodsSize.setSuggestLowPrice(storage.getSuggestLowPrice());
  593 + goodsSize.setSuggestHighPrice(storage.getSuggestHighPrice());
592 goodSizeList.add(goodsSize); 594 goodSizeList.add(goodsSize);
593 } 595 }
594 } 596 }