提交 | 用户 | age
|
bb0cb6
|
1 |
package com.hz.phis.vo.order; |
C |
2 |
|
|
3 |
import lombok.Data; |
|
4 |
|
49fb1b
|
5 |
import java.math.BigDecimal; |
74756b
|
6 |
import java.math.RoundingMode; |
49fb1b
|
7 |
|
bb0cb6
|
8 |
/** |
C |
9 |
* @author CJH |
|
10 |
*/ |
|
11 |
@Data |
|
12 |
public class OrderActivityReturnVo { |
|
13 |
/**活动的订单是否已执行:0否1是*/ |
49fb1b
|
14 |
private Integer isExecute = 0; |
F |
15 |
/**是否已下单*/ |
|
16 |
private Integer isOrder = 0; |
56916a
|
17 |
/**增值金*/ |
49fb1b
|
18 |
private BigDecimal incrementMoney = BigDecimal.ZERO; |
56916a
|
19 |
/**积分*/ |
49fb1b
|
20 |
private BigDecimal integralMoney = BigDecimal.ZERO; |
56916a
|
21 |
/**优惠券数量*/ |
b0f127
|
22 |
private Integer couponNum = 0; |
49fb1b
|
23 |
/**邀请的人数*/ |
F |
24 |
private Integer inviteeNum = 0; |
b0f127
|
25 |
/**分享的人数*/ |
F |
26 |
private Integer shareNum = 0; |
49fb1b
|
27 |
|
74756b
|
28 |
|
F |
29 |
|
|
30 |
public void incrementMoneyAdd(BigDecimal money) { |
|
31 |
if (money == null){ |
|
32 |
money = BigDecimal.ZERO; |
|
33 |
} |
|
34 |
this.incrementMoney = this.incrementMoney.add(money).setScale(2, RoundingMode.HALF_UP); |
|
35 |
} |
|
36 |
public void integralMoneyAdd(BigDecimal money) { |
|
37 |
if (money == null){ |
|
38 |
money = BigDecimal.ZERO; |
|
39 |
} |
|
40 |
this.integralMoney = this.integralMoney.add(money).setScale(2, RoundingMode.HALF_UP); |
|
41 |
} |
|
42 |
public void couponNumAdd(Integer num) { |
|
43 |
if (num == null){ |
|
44 |
num = 0; |
|
45 |
} |
|
46 |
this.couponNum = this.couponNum + num; |
|
47 |
} |
|
48 |
|
|
49 |
|
bb0cb6
|
50 |
} |