Authored by Lixiaodi

增加skup

@@ -33,6 +33,9 @@ public class GoodsSize { @@ -33,6 +33,9 @@ public class GoodsSize {
33 33
34 @JSONField(name="least_price") 34 @JSONField(name="least_price")
35 private BigDecimal leastPrice; 35 private BigDecimal leastPrice;
  36 +
  37 + @JSONField(name="skup")
  38 + private Integer skup;
36 39
37 @JSONField(name="status") 40 @JSONField(name="status")
38 private Integer status; 41 private Integer status;
@@ -92,4 +95,13 @@ public class GoodsSize { @@ -92,4 +95,13 @@ public class GoodsSize {
92 public void setStatus(Integer status) { 95 public void setStatus(Integer status) {
93 this.status = status; 96 this.status = status;
94 } 97 }
  98 +
  99 + public Integer getSkup() {
  100 + return skup;
  101 + }
  102 +
  103 + public void setSkup(Integer skup) {
  104 + this.skup = skup;
  105 + }
  106 +
95 } 107 }
@@ -526,6 +526,7 @@ public class ProductServiceImpl implements ProductService{ @@ -526,6 +526,7 @@ public class ProductServiceImpl implements ProductService{
526 goodsSize.setLeastPrice(storagePrice == null ? null : storagePrice.getPrice()); 526 goodsSize.setLeastPrice(storagePrice == null ? null : storagePrice.getPrice());
527 goodsSize.setStatus(storagePrice == null ? null : storagePrice.getStatus()); 527 goodsSize.setStatus(storagePrice == null ? null : storagePrice.getStatus());
528 goodsSize.setStorageNum(storagePrice == null ? 0 : storage.getStorageNum()); 528 goodsSize.setStorageNum(storagePrice == null ? 0 : storage.getStorageNum());
  529 + goodsSize.setSkup(storagePrice == null ? 0 : storagePrice.getSkup());
529 goodSizeList.add(goodsSize); 530 goodSizeList.add(goodsSize);
530 } 531 }
531 } 532 }