Просмотр исходного кода

[C端][修复]:修复c端channel没有面额的问题

release_toaliyun_real
hupeng 7 лет назад
Родитель
Сommit
6b0d85ddce
1 измененных файлов: 29 добавлений и 0 удалений
  1. +29
    -0
      mallinkService/src/main/java/com/simple/domain/vo/WxCouponChannelVo.java

+ 29
- 0
mallinkService/src/main/java/com/simple/domain/vo/WxCouponChannelVo.java Просмотреть файл

@@ -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();


Загрузка…
Отмена
Сохранить