Browse Source

couponorder

release_toaliyun_real
xhxu 5 years ago
parent
commit
f7006f3724
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      mallinkService/src/main/java/com/iformall/domain/vo/WxCouponOrderBVo.java

+ 13
- 1
mallinkService/src/main/java/com/iformall/domain/vo/WxCouponOrderBVo.java View File

@@ -65,9 +65,13 @@ public class WxCouponOrderBVo extends WxCouponOrder {
private String priceStr;

@TableField(exist = false)
@Excel(name = "交易价格(元)", width = 20, orderNum = "6")
// @Excel(name = "交易价格(元)", width = 20, orderNum = "6")
private String salePriceStr;

@Excel(name = "交易价格(元)", width = 20, orderNum = "6")
@TableField(exist = false)
private String couponPriceStr;

@Excel(name = "状态", width = 20, replace = {"待使用_0", "已核销_1", "已过期_2", "已退款_3"}, orderNum = "14")
@io.swagger.annotations.ApiModelProperty(value = "状态:0,待使用 1,已核销 2,已过期 3,已作废 ", name = "couponOrderStatus")
private Integer couponOrderStatus;
@@ -233,4 +237,12 @@ public class WxCouponOrderBVo extends WxCouponOrder {
return priceStr;
}

public String getCouponPriceStr() {
if(couponPrice!=null) {
DecimalFormat df=new DecimalFormat("0.00");
couponPriceStr = df.format((float)couponPrice/100);
}
return couponPriceStr;
}

}

Loading…
Cancel
Save