yujian
2020-03-31 684779576c02c13cb2a18a7d93e88da7e57fd4b8
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
package com.yeshi.fanli.entity.bus.user;
 
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
 
import org.yeshi.utils.mybatis.Column;
 
/**
 * 分销关系
 * 
 * @author cxx
 *
 * @date 2018年1月29日
 */
@Table(name = "yeshi_ec_threeSale")
@org.yeshi.utils.mybatis.Table("yeshi_ec_threeSale")
public class ThreeSale {
    // 邀请状态
    public static int STATE_SUCCESS = 1;// 成功
    public static int STATE_NOT_SUCCESS = 0;// 尚未成功
 
    // 脱离状态
    public static int EXPIRE_NORMAL = 0;// 正常状态
    public static int EXPIRE_BREAK = 1;// 邀请关系脱离
    public static int EXPIRE_BREAK_VIP = 2; // vip脱离关系
    public static int EXPIRE_BREAK_VIP_DEL3 = 3; // 直接脱离关系删除
    public static int EXPIRE_BREAK_VIP_DEL4 = 4; // 间接脱离关系删除
    public static int EXPIRE_BREAK_VIP_DEL34 = 34; // 直接、间接脱离关系删除
 
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "id")
    private Long id;
 
    public ThreeSale(Long id) {
        this.id = id;
    }
 
    public ThreeSale() {
    }
 
    @Column(name = "boss_id")
    private UserInfo boss;// 邀请者
 
    @Column(name = "worker_id")
    private UserInfo worker; // 被邀请者
 
    @Column(name = "state")
    private Boolean state;// 状态:是否邀请成功 被邀请者登陆后才算邀请成功 1已成功、0还未成功
 
    @Column(name = "expire")
    // 是否过期: 是否过期:初始0 已过期1 (2018.10.22添加)
    private Integer expire;
 
    @Column(name = "createTime")
    private Long createTime;
 
    @Column(name = "succeedTime")
    private Long succeedTime;
 
    @Column(name = "updateTime")
    private Long updateTime;
 
    @Transient
    private ThreeSaleExtraInfo threeSaleExtraInfo;
 
    // 上上级关系状态
    @Transient
    private Boolean stateSuper;
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public UserInfo getBoss() {
        return boss;
    }
 
    public void setBoss(UserInfo boss) {
        this.boss = boss;
    }
 
    public UserInfo getWorker() {
        return worker;
    }
 
    public void setWorker(UserInfo worker) {
        this.worker = worker;
    }
 
    public Long getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
 
    public Boolean getState() {
        return state;
    }
 
    public void setState(Boolean state) {
        this.state = state;
    }
 
    public Integer getExpire() {
        return expire;
    }
 
    public void setExpire(Integer expire) {
        this.expire = expire;
    }
 
    public Long getSucceedTime() {
        return succeedTime;
    }
 
    public void setSucceedTime(Long succeedTime) {
        this.succeedTime = succeedTime;
    }
 
    public Long getUpdateTime() {
        return updateTime;
    }
 
    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }
 
    public ThreeSaleExtraInfo getThreeSaleExtraInfo() {
        return threeSaleExtraInfo;
    }
 
    public void setThreeSaleExtraInfo(ThreeSaleExtraInfo threeSaleExtraInfo) {
        this.threeSaleExtraInfo = threeSaleExtraInfo;
    }
 
    public Boolean getStateSuper() {
        return stateSuper;
    }
 
    public void setStateSuper(Boolean stateSuper) {
        this.stateSuper = stateSuper;
    }
 
}