Customer.java
2.75 KB
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 cn.com.glsx.entmicro.entity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
import java.util.Objects;
import javax.persistence.*;
@Data
@Accessors(chain = true)
@Table(name = "scrm_customer")
public class Customer extends BaseEntity {
/**
* 客户名称
*/
@Column(name = "customer_name")
private String customerName;
/**
* 客户电话
*/
@Column(name = "customer_phone")
private String customerPhone;
/**
* '外部联系人头像'
*/
private String avatar;
/**
* 微信号
*/
@Column(name = "wechat_id")
private String wechatId;
/**
* 企业内部标识
*/
@Column(name = "user_id")
private String userid;
/**
* 性别 0-未知 1-男性 2-女性
*/
@Column(name = "customer_sex")
private Integer customerSex;
/**
* 用户类型 1.微信 2.企微
*/
private Integer type;
/**
* 客户职位
*/
private String position;
/**
* 所在企业的简称
*/
@Column(name = "corp_name")
private String corpName;
/**
* 所在企业的主体名称
*/
@Column(name = "corp_full_name")
private String corpFullName;
/**
* 删除时间
*/
@Column(name = "delete_time")
private Date deleteTime;
/**
* 商户号
*/
@Column(name = "account_id")
private Integer accountId;
/**
* 数据侧内部标识
*/
@Column(name = "one_id")
private String oneId;
/**
* 客户来源
*/
@Column(name = "add_way")
private Integer addWay;
/**
* 商户号
*/
@Column(name = "merchantId")
private Integer merchantid;
/**
* 渠道
*/
@Column(name = "cust_state")
private String state;
/**
* 身份证号码
*/
@Column(name = "id_card")
private String idCard;
@Transient
private Date buyDate;
@Transient
private Date arrivalDate;
@Transient
private Date comInsuranceEndtime;
@Transient
@ApiModelProperty(notes = "近期保养日期")
private Date maintenanceDate;
/**
* 解析出来的手机号
*/
@Transient
private String remarkPhone;
@Column(name = "union_id")
private String unionId;
@Column(name = "userid_bef_encryption")
private String useridBefEncryption;
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Customer that = (Customer) o;
return Objects.equals(userid, that.userid);
}
@Override
public int hashCode() {
return Objects.hash(userid);
}
}