yujian
2019-03-27 cdcbed9af813b2a02cdc01eefa24db8bec6b51a9
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
package com.yeshi.fanli.entity.bus.user;
 
import java.util.Date;
 
import org.yeshi.utils.mybatis.Column;
import org.yeshi.utils.mybatis.Table;
 
/**
 * 用户券使用记录
 * @author Administrator
 *
 */
@Table("yeshi_ec_user_system_coupon_record")
public class UserSystemCouponRecord {
 
    // 状态: 匹配中0    规则不匹配1   退款退回4  匹配超时退回5   免单中2  使用成功3  
    public final static int STATE_WAIT= 0;
    public final static int STATE_FAIL_RULE =1;
    public final static int STATE_FAIL_DRAWBACK = 4;
    public final static int STATE_WAIT_TIME_OUT = 5;
    
    public final static int STATE_FREE_ON = 2;
    public final static int STATE_SUCCESS = 3;
        
    
    @Column(name = "ucr_id")
    private Long id;
 
    // 商品id
    @Column(name = "ucr_good_id")
    private Long goodId;
 
    // 商品来源
    @Column(name = "ucr_good_source")
    private int goodSource;
 
    // 用户券
    @Column(name = "ucr_user_coupon_id")
    private UserSystemCoupon userSystemCoupon;
    
    // 券类型
    @Column(name = "ucr_coupon_type")
    private String couponType;
 
    // 订单号
    @Column(name = "ucr_order_no")
    private String orderNo;
 
    // 状态: 待匹配0  使用成功1  规则不匹配2 退款退回3
    @Column(name = "ucr_state")
    private Integer state;
 
    // 创建时间
    @Column(name = "ucr_create_time")
    private Date createTime;
 
    // 更新时间
    @Column(name = "ucr_update_time")
    private Date updateTime;
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public Long getGoodId() {
        return goodId;
    }
 
    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }
 
    public int getGoodSource() {
        return goodSource;
    }
 
    public void setGoodSource(int goodSource) {
        this.goodSource = goodSource;
    }
 
    public UserSystemCoupon getUserSystemCoupon() {
        return userSystemCoupon;
    }
 
    public void setUserSystemCoupon(UserSystemCoupon userSystemCoupon) {
        this.userSystemCoupon = userSystemCoupon;
    }
 
    public String getOrderNo() {
        return orderNo;
    }
 
    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }
 
    public Integer getState() {
        return state;
    }
 
    public void setState(Integer state) {
        this.state = state;
    }
 
    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 String getCouponType() {
        return couponType;
    }
 
    public void setCouponType(String couponType) {
        this.couponType = couponType;
    }
}