提交 | 用户 | age | ||
0c733d | 1 | package com.hz.phis.dt.coupon; |
F | 2 | |
3 | ||
4 | import lombok.Data; | |
5 | ||
6 | import java.math.BigDecimal; | |
7 | import java.math.RoundingMode; | |
8 | ||
9 | /** | |
10 | * 优惠券检验金额返回实体 | |
11 | */ | |
12 | @Data | |
13 | public class CouponCheckMoneyDt { | |
14 | /**金额*/ | |
15 | BigDecimal goodsMoney = BigDecimal.ZERO; | |
16 | ||
17 | /**金额叠加*/ | |
18 | public void goodsMoneyAdd(BigDecimal money) { | |
19 | if (money == null){ | |
20 | money = BigDecimal.ZERO; | |
21 | } | |
22 | this.goodsMoney = this.goodsMoney.add(money).setScale(2, RoundingMode.HALF_UP); | |
23 | } | |
24 | ||
25 | } |