1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);
| }
|
| }
|
|