EntmicroStaff.java
4.47 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
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
package cn.com.glsx.entmicro.entity;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Objects;
@Data
@Table(name = "entmicro_staff")
public class EntmicroStaff implements Serializable {
/**
* 主键
*/
@Id
@Column(name = "id")
private Integer id;
/**
* 员工名称
*/
@Column(name = "staff_name")
private String staffName;
/**
* 部门id
*/
@Column(name = "department_id")
private String departmentId;
/**
* 员工邮箱
*/
@Column(name = "staff_email")
private String staffEmail;
/**
* 创建人
*/
@Column(name = "created_by")
private Integer createdBy;
/**
* 创建时间
*/
@Column(name = "created_time")
private Date createdTime;
/**
* 更新人
*/
@Column(name = "updated_by")
private Integer updatedBy;
/**
* 更新时间
*/
@Column(name = "updated_time")
private Date updatedTime;
/**
* 是否删除:0=正常,-1=删除
*/
@Column(name = "del_flag")
private Byte delFlag;
/**
* 员工手机号
*/
@Column(name = "staff_phone")
private String staffPhone;
/**
* 添加外部联系人权限0:是 1:否
*/
@Column(name = "is_add_outsider")
private Byte isAddOutsider;
/**
* 企微内部标识
*/
@Column(name = "user_id")
private String userId;
/**
* 企业OpenId
*/
@Column(name = "open_userid")
private String openUserid;
/**
* 企微名称
*/
@Column(name = "entmicro_name")
private String entmicroName;
/**
* 跟进员工类型id
*/
@Column(name = "follower_type_id")
private Integer followerTypeId;
/**
* 员工职务
*/
@Column(name = "staff_title")
private String staffTitle;
/**
* 跟进员工创建时间
*/
@Column(name = "follower_created_time")
private Date followerCreatedTime;
/**
* 商户号
*/
@Transient
private Integer merchantid;
/**
* 激活状态
*/
@Column(name = "status")
private Integer status;
/**
* 员工性别
*/
@Column(name = "staff_sex")
private String staffSex;
/**
* 员工唯一id
*/
@Column(name = "staff_uuid")
private String staffUuid;
/**
* 员工二维码
*/
@Column(name = "qr_code")
private String qrCode;
/**
* 员工头像
*/
@Column(name = "thumb_avatar")
private String thumbAvatar;
/**
* 最后同步时间
*/
@Column(name = "last_login_time")
private Date lastLoginTime;
/**
* 1.登录 0.登出
*/
@Column(name = "login_status")
private Integer loginStatus;
/**
* 加密前id(云控对接)
*/
@Column(name = "id_bef_encryption")
private String idBefEncryption;
/**
* 企业id
*/
@Column(name = "entmicro_id")
private Integer entmicroId;
@Transient
private List<EntmicroStaffDepartRelation> entmicroStaffDepartRelationList;
@Transient
private String newUserID;
@Transient
private Integer oldMerchantId;
/**
* 1.新增 2.更新
*/
@Transient
private String type;
/**
* 是否同步
*/
@Transient
private boolean flag;
@Transient
private String oldPhone;
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
EntmicroStaff that = (EntmicroStaff) o;
return Objects.equals(userId, that.userId);
}
@Override
public int hashCode() {
return Objects.hash(userId);
}
public EntmicroStaff() {
}
public EntmicroStaff(String userId, Integer merchantid) {
this.userId = userId;
this.merchantid = merchantid;
}
public EntmicroStaff(String staffName, String staffEmail, String staffPhone, String staffTitle, String idBefEncryption, Integer entmicroId) {
this.staffName = staffName;
this.staffEmail = staffEmail;
this.staffPhone = staffPhone;
this.staffTitle = staffTitle;
this.idBefEncryption = idBefEncryption;
this.entmicroId = entmicroId;
}
}