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