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); } }