phis-feign/src/main/java/com/hz/phis/dt/coupon/CouponCheckMoneyDt.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
phis-feign/src/main/java/com/hz/phis/dt/coupon/CouponCheckMoneyDt.java
New file @@ -0,0 +1,25 @@ package com.hz.phis.dt.coupon; import lombok.Data; import java.math.BigDecimal; import java.math.RoundingMode; /** * 优惠券检验金额返回实体 */ @Data public class CouponCheckMoneyDt { /**金额*/ BigDecimal goodsMoney = BigDecimal.ZERO; /**金额叠加*/ public void goodsMoneyAdd(BigDecimal money) { if (money == null){ money = BigDecimal.ZERO; } this.goodsMoney = this.goodsMoney.add(money).setScale(2, RoundingMode.HALF_UP); } }