liujie
23 小时以前 384bce80449b17651937429038c4370dbce60e7b
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package com.ruoyi.user.domain.vo;
 
/**
 * 会员收益汇总 VO
 *
 * 金额单位统一为「分」,由前端负责格式化为元展示;
 * 无收益流水时三栏均为 0,避免前端出现 null 判断分支。
 *
 * @author hugray
 */
public class EarningSummaryVo
{
    /** 今日收益(单位:分) */
    private Long today;
 
    /** 本月收益(单位:分) */
    private Long month;
 
    /** 累计收益(单位:分) */
    private Long total;
 
    public EarningSummaryVo()
    {
    }
 
    public EarningSummaryVo(Long today, Long month, Long total)
    {
        this.today = today;
        this.month = month;
        this.total = total;
    }
 
    /**
     * 全零汇总:用于会员无任何收益流水的场景
     *
     * @return 三栏均为 0 的汇总对象
     */
    public static EarningSummaryVo zero()
    {
        return new EarningSummaryVo(0L, 0L, 0L);
    }
 
    public Long getToday()
    {
        return today;
    }
 
    public void setToday(Long today)
    {
        this.today = today;
    }
 
    public Long getMonth()
    {
        return month;
    }
 
    public void setMonth(Long month)
    {
        this.month = month;
    }
 
    public Long getTotal()
    {
        return total;
    }
 
    public void setTotal(Long total)
    {
        this.total = total;
    }
}