Browse Source

[卡券][修改]:总库存传给前端

release_toaliyun_real
hupeng 7 years ago
parent
commit
a934018ea7
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      mallinkService/src/main/java/com/iformall/domain/vo/WxCouponChannelVo.java

+ 13
- 0
mallinkService/src/main/java/com/iformall/domain/vo/WxCouponChannelVo.java View File

@@ -14,6 +14,10 @@ import java.text.DecimalFormat;
public class WxCouponChannelVo extends WxCouponChannel implements Serializable {
private static final long serialVersionUID = 1L;

/*总库存**/
@io.swagger.annotations.ApiModelProperty(value="总库存",name="inventory")
private Integer inventory;

/*剩余库存**/
@io.swagger.annotations.ApiModelProperty(value="剩余库存",name="remainInventory")
private Integer remainInventory;
@@ -67,6 +71,14 @@ public class WxCouponChannelVo extends WxCouponChannel implements Serializable {
@io.swagger.annotations.ApiModelProperty(value="1.主动领取2.定向投放",name="sendType")
private Integer sendType;

public Integer getInventory() {
return inventory;
}

public void setInventory(Integer inventory) {
this.inventory = inventory;
}

public Integer getRemainInventory() {
return remainInventory;
}
@@ -188,6 +200,7 @@ public class WxCouponChannelVo extends WxCouponChannel implements Serializable {
public WxCouponChannelVo(){}
public WxCouponChannelVo setWxCoupon (WxCoupon wxCoupon){
this.coverImg=wxCoupon.getCoverImg();
this.inventory=wxCoupon.getInventory();
this.remainInventory=wxCoupon.getRemainInventory();
this.price=wxCoupon.getPrice();
this.salePrice=wxCoupon.getSalePrice();


Loading…
Cancel
Save