|
|
|
@@ -27,6 +27,10 @@ public class WxCouponChannelVo extends WxCouponChannel implements Serializable { |
|
|
|
/*使用条件金额(适用于类型1,2,3,4)**/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="使用条件金额(适用于类型1,2,3,4)",name="usePrice") |
|
|
|
private Integer usePrice; |
|
|
|
/*面额**/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="面额",name="price") |
|
|
|
private Integer price; |
|
|
|
|
|
|
|
|
|
|
|
@Transient |
|
|
|
private String salePriceStr; |
|
|
|
@@ -34,6 +38,9 @@ public class WxCouponChannelVo extends WxCouponChannel implements Serializable { |
|
|
|
@Transient |
|
|
|
private String usePriceStr; |
|
|
|
|
|
|
|
@Transient |
|
|
|
private String priceStr; |
|
|
|
|
|
|
|
/*限领张数**/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="限领张数",name="useLimitQuantity") |
|
|
|
private Integer useLimitQuantity; |
|
|
|
@@ -88,6 +95,14 @@ public class WxCouponChannelVo extends WxCouponChannel implements Serializable { |
|
|
|
this.usePrice = usePrice; |
|
|
|
} |
|
|
|
|
|
|
|
public void setPrice(Integer price) { |
|
|
|
this.price = price; |
|
|
|
} |
|
|
|
|
|
|
|
public Integer getPrice() { |
|
|
|
return price; |
|
|
|
} |
|
|
|
|
|
|
|
public Integer getUseLimitQuantity() { |
|
|
|
return useLimitQuantity; |
|
|
|
} |
|
|
|
@@ -144,10 +159,24 @@ public class WxCouponChannelVo extends WxCouponChannel implements Serializable { |
|
|
|
this.usePriceStr = usePriceStr; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getPriceStr() { |
|
|
|
if(price!=null) { |
|
|
|
DecimalFormat df=new DecimalFormat("0.00"); |
|
|
|
priceStr = df.format((float)price/100); |
|
|
|
} |
|
|
|
return priceStr; |
|
|
|
} |
|
|
|
|
|
|
|
public void setPriceStr(String priceStr) { |
|
|
|
this.priceStr = priceStr; |
|
|
|
} |
|
|
|
|
|
|
|
public WxCouponChannelVo(){} |
|
|
|
public WxCouponChannelVo setWxCoupon (WxCoupon wxCoupon){ |
|
|
|
this.coverImg=wxCoupon.getCoverImg(); |
|
|
|
this.remainInventory=wxCoupon.getRemainInventory(); |
|
|
|
this.price=wxCoupon.getPrice(); |
|
|
|
this.salePrice=wxCoupon.getSalePrice(); |
|
|
|
this.sendStartDate=wxCoupon.getSendStartDate(); |
|
|
|
this.sendEndDate=wxCoupon.getSendEndDate(); |
|
|
|
|