java110
2021-05-15 811e8e7139ad6e331c2f84bcd5cf3f927a8b3312
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
package com.java110.entity.user;
 
import com.java110.entity.DefaultBoEntity;
 
import java.util.Date;
 
/**
 * 客户信息(过程)
 * 主要用于新建客户,更新客户,删除客户时,保存到以bo开头的过程表 实体
 * Created by wuxw on 2016/12/27.
 */
public class BoCust extends DefaultBoEntity implements Comparable<BoCust> {
 
 
    private final static String CUST_TYPE_GENERAL= "1";// 普通客户
 
    private final static String CUST_TYPE_MANAGER="2";// 管理员
 
    private final static String CUST_TYPE_ADMINISTRATOR="3"; //超级管理
 
    private final static String CUST_TYPE_WECHAT="4"; //微信用户
 
    private final static String CUST_TYPE_ALIPAY="5";//支付宝用户
 
    private final static String CUST_TYPE_GITHUB="6";//github用户
 
    private final static String CUST_TYPE_SINA="7";//sina 用户
    private final static String CUST_TYPE_QQ="8";//QQ 用户
 
    private String boId;
 
    private String custId;
 
    private String name;
 
    private String email;
 
    private String cellphone;
 
    private String realName;
 
    private String sex;
 
    private String password;
 
    private String lanId;
 
    private String custAdress;
 
    private String custType;
 
    private String openId;
 
 
 
    public String getBoId() {
        return boId;
    }
 
    public void setBoId(String boId) {
        this.boId = boId;
    }
 
    public String getCustId() {
        return custId;
    }
 
    public void setCustId(String custId) {
        this.custId = custId;
    }
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public String getEmail() {
        return email;
    }
 
    public void setEmail(String email) {
        this.email = email;
    }
 
    public String getCellphone() {
        return cellphone;
    }
 
    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }
 
    public String getRealName() {
        return realName;
    }
 
    public void setRealName(String realName) {
        this.realName = realName;
    }
 
    public String getSex() {
        return sex;
    }
 
    public void setSex(String sex) {
        this.sex = sex;
    }
 
    public String getPassword() {
        return password;
    }
 
    public void setPassword(String password) {
        this.password = password;
    }
 
    public String getLanId() {
        return lanId;
    }
 
    public void setLanId(String lanId) {
        this.lanId = lanId;
    }
 
    public String getCustAdress() {
        return custAdress;
    }
 
    public void setCustAdress(String custAdress) {
        this.custAdress = custAdress;
    }
 
    public String getCustType() {
        return custType;
    }
 
    public void setCustType(String custType) {
        this.custType = custType;
    }
 
    public String getOpenId() {
        return openId;
    }
 
    public void setOpenId(String openId) {
        this.openId = openId;
    }
 
 
    /**
     * 转为实例数据
     * @return
     */
    public Cust convert(){
 
        Cust cust = new Cust();
        cust.setCustId(this.getCustId());
        cust.setName(this.getName());
        cust.setCellphone(this.getCellphone());
        cust.setCustAdress(this.getCustAdress());
        cust.setCustType(this.getCustType());
        cust.setEmail(this.getEmail());
        cust.setLanId(this.getLanId());
        cust.setOpenId(this.getOpenId());
        cust.setRealName(this.getRealName());
        cust.setSex(this.getSex());
        cust.setPassword(this.getPassword());
 
        return cust;
    }
 
    /**
     * 排序
     * @param o
     * @return
     */
    @Override
    public int compareTo(BoCust otherBoCust) {
 
        if("DEL".equals(this.getState()) && "ADD".equals(otherBoCust.getState())) {
            return -1;
        }
        return 0;
    }
}