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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
package tkio.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;
@Entity
public class Account {
private Long id;
private String email;
private String password;
private String company;
private String name;
private String phone;
private String qq;
private String wechat;
private boolean isSuperUser;
private Long parent = 0L;
private Long rootParent;
private String isSpecialAccount;
//母账号:-1表示未审核,0表示禁用,1表示已审核;子账号:0表示禁用,1表示启用;总之:1表示用户可用状态;补充:-3表示未激活 -2 表示未开通
private int status;
private String pastDate;
private Date createTime = new Date();
//审核通过的时间
private Date pubDate;
private Long createAccount;
private Date modifyTime = new Date();
private Long modifyAccount;
private Boolean delFlag;
private Boolean isChannelPerson;
private String channelAccount;
//角色ID,对应role_auth表的ID。
private Long roleCategory;
private Long pricelevel;
private Long bussinessman;
private Long activeTime;
private Long forgetPwdTime;
//默认状态为空 false 忘记密码邮件发送后赋值; true 修改完密码之后赋值,表示完成修改密码操作,整个忘记密码流程结束
private Boolean forgetPwdStatus;
//默认状态为空 false 激活邮件发送后赋值; true 激活操作之后赋值,表示完成激活操作,整个激活流程结束,防止重复提交url
private Boolean activeStatus;
private int appSize;
private String remark;
//默认为空 false 非全渠道设置参数 true全渠道设置参数
private Boolean allChannelValidMatch;
private Boolean allChannelFakeMatch;
private Boolean allChannelBlackMatch;
//Transient
private String modifyAccountName;
private String createAccountName;
private String roleName;
private Long parentRole;
private String authStr;
private boolean isMasterLogin;
private List<UserLog> userLogList;
private List<Auth> authList;
private Boolean valid;
private String regIpAddr;
private String regIpLocation;
private Boolean verifyEmail = false;
private Boolean allowBehavior;
private Boolean isFlowRestrict;
private String modifyPricelevelTime;
private Boolean newContract;
private Boolean startByContract;
public Boolean getStartByContract() {
return startByContract;
}
public void setStartByContract(Boolean startByContract) {
this.startByContract = startByContract;
}
public Boolean getFlowRestrict() {
return isFlowRestrict;
}
public void setFlowRestrict(Boolean flowRestrict) {
isFlowRestrict = flowRestrict;
}
public Boolean getAllowBehavior() {
return allowBehavior;
}
public void setAllowBehavior(Boolean allowBehavior) {
this.allowBehavior = allowBehavior;
}
public Account() {
super();
}
public Account(Long id, String email, String password, String company,
String name, String phone, String qq, boolean isSuperUser,
Long parent, String isSpecialAccount, int status, String pastDate,
Date createTime, Long createAccount, Date modifyTime,
Long modifyAccount, boolean delFlag) {
super();
this.id = id;
this.email = email;
this.password = password;
this.company = company;
this.name = name;
this.phone = phone;
this.qq = qq;
this.isSuperUser = isSuperUser;
this.parent = parent;
this.isSpecialAccount = isSpecialAccount;
this.status = status;
this.pastDate = pastDate;
this.createTime = createTime;
this.createAccount = createAccount;
this.modifyTime = modifyTime;
this.modifyAccount = modifyAccount;
this.delFlag = delFlag;
}
@Id
@GeneratedValue
public Long getId() {
return id;
}
public boolean getIsSuperUser() {
return isSuperUser;
}
public String getName() {
return name;
}
public String getPassword() {
return password;
}
public String getPhone() {
return phone;
}
public String getQq() {
return qq;
}
public Date getCreateTime() {
return createTime;
}
public void setCompany(String company) {
this.company = company;
}
public void setEmail(String email) {
this.email = email;
}
public String getCompany() {
return company;
}
public String getEmail() {
return email;
}
public void setId(Long id) {
this.id = id;
}
public void setIsSuperUser(boolean isSuperUser) {
this.isSuperUser = isSuperUser;
}
public void setName(String name) {
this.name = name;
}
public void setPassword(String password) {
this.password = password;
}
public void setPhone(String phone) {
this.phone = phone;
}
public void setQq(String qq) {
this.qq = qq;
}
public void setSuperUser(boolean isSuperUser) {
this.isSuperUser = isSuperUser;
}
public Long getParent() {
return parent;
}
public void setParent(Long parent) {
this.parent = parent;
}
public Long getRootParent() {
return rootParent;
}
public void setRootParent(Long rootParent) {
this.rootParent = rootParent;
}
public String getIsSpecialAccount() {
return isSpecialAccount;
}
public void setIsSpecialAccount(String isSpecialAccount) {
this.isSpecialAccount = isSpecialAccount;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public String getPastDate() {
return pastDate;
}
public void setPastDate(String pastDate) {
this.pastDate = pastDate;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Long getCreateAccount() {
return createAccount;
}
public void setCreateAccount(Long createAccount) {
this.createAccount = createAccount;
}
public Long getModifyAccount() {
return modifyAccount;
}
public void setModifyAccount(Long modifyAccount) {
this.modifyAccount = modifyAccount;
}
public Date getModifyTime() {
return modifyTime;
}
public void setModifyTime(Date modifyTime) {
this.modifyTime = modifyTime;
}
public Boolean getDelFlag() {
return delFlag;
}
public void setDelFlag(Boolean delFlag) {
this.delFlag = delFlag;
}
public Boolean getIsChannelPerson() {
return isChannelPerson;
}
public void setIsChannelPerson(Boolean isChannelPerson) {
this.isChannelPerson = isChannelPerson;
}
public String getChannelAccount() {
return channelAccount;
}
public void setChannelAccount(String channelAccount) {
this.channelAccount = channelAccount;
}
public String getWechat() {
return wechat;
}
public void setWechat(String wechat) {
this.wechat = wechat;
}
public Long getPricelevel() {
return pricelevel;
}
public void setPricelevel(Long pricelevel) {
this.pricelevel = pricelevel;
}
public Long getBussinessman() {
return bussinessman;
}
public void setBussinessman(Long bussinessman) {
this.bussinessman = bussinessman;
}
public Date getPubDate() {
return pubDate;
}
public void setPubDate(Date pubDate) {
this.pubDate = pubDate;
}
public Long getActiveTime() {
return activeTime;
}
public void setActiveTime(Long activeTime) {
this.activeTime = activeTime;
}
public Long getForgetPwdTime() {
return forgetPwdTime;
}
public void setForgetPwdTime(Long forgetPwdTime) {
this.forgetPwdTime = forgetPwdTime;
}
public Boolean getForgetPwdStatus() {
return forgetPwdStatus;
}
public void setForgetPwdStatus(Boolean forgetPwdStatus) {
this.forgetPwdStatus = forgetPwdStatus;
}
public Boolean getActiveStatus() {
return activeStatus;
}
public void setActiveStatus(Boolean activeStatus) {
this.activeStatus = activeStatus;
}
public Long getRoleCategory() {
return roleCategory;
}
public void setRoleCategory(Long roleCategory) {
this.roleCategory = roleCategory;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public String getModifyPricelevelTime() {
return modifyPricelevelTime;
}
public void setModifyPricelevelTime(String modifyPricelevelTime) {
this.modifyPricelevelTime = modifyPricelevelTime;
}
public Boolean getNewContract() {
return newContract;
}
public void setNewContract(Boolean newContract) {
this.newContract = newContract;
}
@Transient
public String getRoleName() {
return roleName;
}
public void setRoleName(String roleName) {
this.roleName = roleName;
}
@Transient
public Long getParentRole() {
return parentRole;
}
public void setParentRole(Long parentRole) {
this.parentRole = parentRole;
}
@Transient
public String getAuthStr() {
return authStr;
}
public void setAuthStr(String authStr) {
this.authStr = authStr;
}
@Transient
public List<UserLog> getUserLogList() {
return userLogList;
}
public void setUserLogList(List<UserLog> userLogList) {
this.userLogList = userLogList;
}
@Transient
public boolean getIsMasterLogin() {
return isMasterLogin;
}
public void setIsMasterLogin(boolean isMasterLogin) {
this.isMasterLogin = isMasterLogin;
}
@Transient
public List<Auth> getAuthList() {
return authList;
}
public void setAuthList(List<Auth> authList) {
this.authList = authList;
}
@Transient
public String getCreateAccountName() {
return createAccountName;
}
public void setCreateAccountName(String createAccountName) {
this.createAccountName = createAccountName;
}
@Transient
public String getModifyAccountName() {
return modifyAccountName;
}
public void setModifyAccountName(String modifyAccountName) {
this.modifyAccountName = modifyAccountName;
}
@Transient
public Boolean getValid() {
return valid;
}
public void setValid(Boolean valid) {
this.valid = valid;
}
@Transient
public int getAppSize()
{
return appSize;
}
public void setAppSize(int appSize)
{
this.appSize = appSize;
}
public Boolean getAllChannelValidMatch() {
return allChannelValidMatch;
}
public void setAllChannelValidMatch(Boolean allChannelValidMatch) {
this.allChannelValidMatch = allChannelValidMatch;
}
public Boolean getAllChannelFakeMatch() {
return allChannelFakeMatch;
}
public void setAllChannelFakeMatch(Boolean allChannelFakeMatch) {
this.allChannelFakeMatch = allChannelFakeMatch;
}
public Boolean getAllChannelBlackMatch() {
return allChannelBlackMatch;
}
public void setAllChannelBlackMatch(Boolean allChannelBlackMatch) {
this.allChannelBlackMatch = allChannelBlackMatch;
}
public String getRegIpAddr()
{
return regIpAddr;
}
public void setRegIpAddr(String regIpAddr)
{
this.regIpAddr = regIpAddr;
}
public String getRegIpLocation()
{
return regIpLocation;
}
public void setRegIpLocation(String regIpLocation)
{
this.regIpLocation = regIpLocation;
}
public Boolean getVerifyEmail()
{
return verifyEmail;
}
public void setVerifyEmail(Boolean verifyEmail)
{
this.verifyEmail = verifyEmail;
}
@Override
public String toString() {
return "Account{" +
"id=" + id +
", email='" + email + '\'' +
", password='" + password + '\'' +
", company='" + company + '\'' +
", name='" + name + '\'' +
", phone='" + phone + '\'' +
", qq='" + qq + '\'' +
", wechat='" + wechat + '\'' +
", isSuperUser=" + isSuperUser +
", parent=" + parent +
", isSpecialAccount='" + isSpecialAccount + '\'' +
", status=" + status +
", pastDate='" + pastDate + '\'' +
", createTime=" + createTime +
", pubDate=" + pubDate +
", createAccount=" + createAccount +
", modifyTime=" + modifyTime +
", modifyAccount=" + modifyAccount +
", delFlag=" + delFlag +
", roleCategory=" + roleCategory +
", authStr='" + authStr + '\'' +
", isChannelPerson=" + isChannelPerson +
", channelAccount='" + channelAccount + '\'' +
", userLogList=" + userLogList +
", isMasterLogin=" + isMasterLogin +
", pricelevel=" + pricelevel +
", bussinessman=" + bussinessman +
", activeTime=" + activeTime +
", forgetPwdTime=" + forgetPwdTime +
", forgetPwdStatus=" + forgetPwdStatus +
", activeStatus=" + activeStatus +
'}';
}
}