|
|
@@ -1518,6 +1518,8 @@ public class Goods implements Serializable {
|
|
|
this.minBuyQty = minBuyQty;
|
|
|
this.minPackQty = minPackQty;
|
|
|
this.status = status;
|
|
|
+ this.b2cMaxDelivery = maxDelivery;
|
|
|
+ this.b2cMinDelivery = minDelivery;
|
|
|
}
|
|
|
|
|
|
public Goods(GoodsHistory history) {
|
|
|
@@ -1805,6 +1807,11 @@ public class Goods implements Serializable {
|
|
|
goods.setPublishPhone(SystemSession.getUser().getUserTel());
|
|
|
if (null == goods.getStatus()) {
|
|
|
goods.setStatus(Status.NO_SHELVE.value());
|
|
|
+ }
|
|
|
+ goods.setProductid(product.getId());
|
|
|
+ goods.setCurrencyName(product.getCurrency());
|
|
|
+ if (StringUtils.isEmpty(goods.getCurrencyName())) {
|
|
|
+ goods.setCurrencyName(ProductConstant.DEFAULT_CURRENCY);
|
|
|
}
|
|
|
return goods;
|
|
|
}
|