admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
package com.yeshi.fanli.entity.bus.user;
 
import java.util.Date;
 
import org.yeshi.utils.mybatis.Column;
import org.yeshi.utils.mybatis.Table;
 
import com.google.gson.annotations.Expose;
import com.yeshi.fanli.entity.system.SystemCoupon;
 
/**
 * 用户获得券
 * @author Administrator
 *
 */
@Table("yeshi_ec_user_system_coupon")
public class UserSystemCoupon {
 
    // 未使用1
    public final static int STATE_CAN_USE = 1;
    // 使用中2
    public final static int STATE_IN_USE = 2;
    // 已使用3
    public final static int STATE_END_USE = 3;
    // 已过期4 
    public final static int STATE_OVERDUE = 4;
    // 使用退回 -不入库
    public final static int STATE_BACK = 5;
        
    
    // 可使用、可赠送(返回前端字段)
    public final static int STATE_USE_GIVE = 10;
    // 只可赠送(返回前端字段)
    public final static int STATE_GIVE_ONLY = 11; 
    // 赠送中(返回前端字段)
    public final static int STATE_GIVE_IN = 12;
    // 赠送成功(返回前端字段)
    public final static int STATE_GIVE_END = 13;
    
    
    // 来源: 新人抽奖、邀请奖励
    public final static String SOURCE_NEWBIES = "新人抽奖";
    public final static String SOURCE_YAOQING = "邀请奖励";
    public final static String SOURCE_SYSTEM_PUSH = "系统赠送";
    public final static String SOURCE_DAILY_REBATE = "天天抽";
    public final static String SOURCE_EXCHANGE = "金币兑换";
    public final static String SOURCE_GIVE = "好友赠送";
    
    @Expose
    @Column(name = "usc_id")
    private Long id;
 
    // 用户id
    @Column(name = "usc_uid")
    private Long uid;
 
    // 券
    @Column(name = "usc_coupon_id")
    private SystemCoupon systemCoupon;
 
    // 券来源
    @Expose
    @Column(name = "usc_source")
    private String source;
 
    // 状态
    @Expose
    @Column(name = "usc_state")
    private Integer state;
    
    // 激活状态   未激活0 已激活1
    @Expose
    @Column(name = "usc_state_activate")
    private Integer stateActivated;
    
    // 是否已赠送
    @Column(name = "usc_give")
    private Boolean give;
    
    // 起始时间
    @Column(name = "usc_start_time")
    private Date startTime;
 
    // 结束时间
    @Column(name = "usc_end_time")
    private Date endTime;
    
    // 使用时间
    @Column(name = "usc_use_time")
    private Date useTime;
 
    // 创建时间
    @Column(name = "usc_create_time")
    private Date createTime;
 
    // 更新时间
    @Column(name = "usc_update_time")
    private Date updateTime;
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public Long getUid() {
        return uid;
    }
 
    public void setUid(Long uid) {
        this.uid = uid;
    }
 
    public SystemCoupon getSystemCoupon() {
        return systemCoupon;
    }
 
    public void setSystemCoupon(SystemCoupon systemCoupon) {
        this.systemCoupon = systemCoupon;
    }
 
    public String getSource() {
        return source;
    }
 
    public void setSource(String source) {
        this.source = source;
    }
 
    public Integer getState() {
        return state;
    }
 
    public void setState(Integer state) {
        this.state = state;
    }
 
    public Date getStartTime() {
        return startTime;
    }
 
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
 
    public Date getEndTime() {
        return endTime;
    }
 
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
 
    public Date getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    public Date getUpdateTime() {
        return updateTime;
    }
 
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
 
    public Date getUseTime() {
        return useTime;
    }
 
    public void setUseTime(Date useTime) {
        this.useTime = useTime;
    }
 
    public Integer getStateActivated() {
        return stateActivated;
    }
 
    public void setStateActivated(Integer stateActivated) {
        this.stateActivated = stateActivated;
    }
 
    public Boolean getGive() {
        return give;
    }
 
    public void setGive(Boolean give) {
        this.give = give;
    }
}