| | |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.math.RoundingMode; |
| | | |
| | | /** |
| | | * @author CJH |
| | |
| | | /**分享的人数*/ |
| | | 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; |
| | | } |
| | | |
| | | |
| | | } |