fwq
2024-07-23 00cfc5c8aae4a252824f5c43f2fb30c508b490eb
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package com.hz.phis.vo.order;
 
import lombok.Data;
 
import java.math.BigDecimal;
import java.math.RoundingMode;
 
/**
 * @author CJH
 */
@Data
public class OrderActivityReturnVo {
    /**活动的订单是否已执行:0否1是*/
    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;
    }
 
 
}