| | |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.math.RoundingMode; |
| | | |
| | | /** |
| | | * @author CJH |
| | |
| | | private Integer isExecute = 0; |
| | | /**是否已下单*/ |
| | | private Integer isOrder = 0; |
| | | |
| | | /**返赠的增值金*/ |
| | | /**增值金*/ |
| | | private BigDecimal incrementMoney = BigDecimal.ZERO; |
| | | /**返赠的积分*/ |
| | | /**积分*/ |
| | | private BigDecimal integralMoney = BigDecimal.ZERO; |
| | | /**优惠券数量*/ |
| | | private Integer couponNum = 0; |
| | | /**邀请的人数*/ |
| | | private Integer inviteeNum = 0; |
| | | /**分享的人数*/ |
| | | private Integer shareNum = 0; |
| | | |
| | | |
| | | |
| | | public void incrementMoneyAdd(BigDecimal money) { |
| | | if (money == null){ |
| | | money = BigDecimal.ZERO; |
| | | } |
| | | this.incrementMoney = this.incrementMoney.add(money).setScale(2, RoundingMode.HALF_UP); |
| | | } |
| | | public void integralMoneyAdd(BigDecimal money) { |
| | | if (money == null){ |
| | | money = BigDecimal.ZERO; |
| | | } |
| | | this.integralMoney = this.integralMoney.add(money).setScale(2, RoundingMode.HALF_UP); |
| | | } |
| | | public void couponNumAdd(Integer num) { |
| | | if (num == null){ |
| | | num = 0; |
| | | } |
| | | this.couponNum = this.couponNum + num; |
| | | } |
| | | |
| | | |
| | | } |