Helius
2020-12-27 8eda088db63ff198cbcd51bf0599531ed006cb84
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
package com.matrix.system.hive.pojo;
 
 
import com.matrix.system.constance.Dictionary;
 
public class MoneyCardUserVo{
    
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    /*vo对象************/
    /**
     * 剩余次数
     */
    String lastCountName;
    /**
     * 数据来源
     */
    String sourceName;    
    
    /*vo对象************/
    
    /**
     * 剩余次数
     */
    
    private Integer  lastCount;
    
    /**
     * 来源,购买,转让,赠送
     */
    private String  source;
    /**
     * 是会籍卡? Y 是,N否
     */
    private String  isVipCar;
    
    /**
     * 当大于10000时使用次数为不限,或者为会籍卡时
     * @return
     */
    public String getLastCountName() {
        if(getLastCount()==null){
            return "";
        }
        if(Dictionary.FLAG_YES.equals(getIsVipCar())||getLastCount()>Dictionary.MAX_USE_COUNT_SIGN){
            lastCountName=Dictionary.MAX_USE_STRING;
        }else{
            lastCountName=getLastCount().toString();
        }
        return lastCountName;
    }
 
    public void setLastCountName(String lastCountName) {
        this.lastCountName = lastCountName;
    }
 
    public String getSourceName() {
        if(getSource()==null){
            return "";
        }
        if(getSource().contains(Dictionary.TAOCAN_SOURCE_ZS)){
            sourceName=Dictionary.FLAG_YES;
        }else{
            sourceName=Dictionary.FLAG_NO;;
        }
        return sourceName;
    }
 
    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }
 
    public Integer getLastCount() {
        return lastCount;
    }
 
    public void setLastCount(Integer lastCount) {
        this.lastCount = lastCount;
    }
 
    public String getSource() {
        return source;
    }
 
    public void setSource(String source) {
        this.source = source;
    }
 
    public String getIsVipCar() {
        return isVipCar;
    }
 
    public void setIsVipCar(String isVipCar) {
        this.isVipCar = isVipCar;
    }
 
    
    
    
}