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
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
package cn.ibizlab.api.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 服务DTO对象[SysEmployeeDTO]
*/
@Data
@ApiModel("人员")
public class SysEmployeeDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [USERID]
*
*/
@JSONField(name = "userid")
@JsonProperty("userid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("用户标识")
private String userid;
/**
* 属性 [USERNAME]
*
*/
@JSONField(name = "username")
@JsonProperty("username")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("用户全局名")
private String username;
/**
* 属性 [PERSONNAME]
*
*/
@JSONField(name = "personname")
@JsonProperty("personname")
@NotBlank(message = "[姓名]不允许为空!")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("姓名")
private String personname;
/**
* 属性 [USERCODE]
*
*/
@JSONField(name = "usercode")
@JsonProperty("usercode")
@NotBlank(message = "[用户工号]不允许为空!")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("用户工号")
private String usercode;
/**
* 属性 [LOGINNAME]
*
*/
@JSONField(name = "loginname")
@JsonProperty("loginname")
@NotBlank(message = "[登录名]不允许为空!")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("登录名")
private String loginname;
/**
* 属性 [PASSWORD]
*
*/
@JSONField(name = "password")
@JsonProperty("password")
@NotBlank(message = "[密码]不允许为空!")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("密码")
private String password;
/**
* 属性 [DOMAINS]
*
*/
@JSONField(name = "domains")
@JsonProperty("domains")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("区属")
private String domains;
/**
* 属性 [MDEPTID]
*
*/
@JSONField(name = "mdeptid")
@JsonProperty("mdeptid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("主部门")
private String mdeptid;
/**
* 属性 [MDEPTCODE]
*
*/
@JSONField(name = "mdeptcode")
@JsonProperty("mdeptcode")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("主部门代码")
private String mdeptcode;
/**
* 属性 [MDEPTNAME]
*
*/
@JSONField(name = "mdeptname")
@JsonProperty("mdeptname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("主部门名称")
private String mdeptname;
/**
* 属性 [BCODE]
*
*/
@JSONField(name = "bcode")
@JsonProperty("bcode")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("业务编码")
private String bcode;
/**
* 属性 [POSTID]
*
*/
@JSONField(name = "postid")
@JsonProperty("postid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("岗位标识")
private String postid;
/**
* 属性 [POSTCODE]
*
*/
@JSONField(name = "postcode")
@JsonProperty("postcode")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("岗位代码")
private String postcode;
/**
* 属性 [POSTNAME]
*
*/
@JSONField(name = "postname")
@JsonProperty("postname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("岗位名称")
private String postname;
/**
* 属性 [ORGID]
*
*/
@JSONField(name = "orgid")
@JsonProperty("orgid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("单位")
private String orgid;
/**
* 属性 [ORGCODE]
*
*/
@JSONField(name = "orgcode")
@JsonProperty("orgcode")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("单位代码")
private String orgcode;
/**
* 属性 [ORGNAME]
*
*/
@JSONField(name = "orgname")
@JsonProperty("orgname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("单位名称")
private String orgname;
/**
* 属性 [NICKNAME]
*
*/
@JSONField(name = "nickname")
@JsonProperty("nickname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("昵称别名")
private String nickname;
/**
* 属性 [SEX]
*
*/
@JSONField(name = "sex")
@JsonProperty("sex")
@Size(min = 0, max = 20, message = "内容长度必须小于等于[20]")
@ApiModelProperty("性别")
private String sex;
/**
* 属性 [CERTCODE]
*
*/
@JSONField(name = "certcode")
@JsonProperty("certcode")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("证件号码")
private String certcode;
/**
* 属性 [PHONE]
*
*/
@JSONField(name = "phone")
@JsonProperty("phone")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("联系方式")
private String phone;
/**
* 属性 [BIRTHDAY]
*
*/
@JsonFormat(pattern="yyyy-MM-dd", locale = "zh" , timezone="GMT+8")
@JSONField(name = "birthday" , format="yyyy-MM-dd")
@JsonProperty("birthday")
@ApiModelProperty("出生日期")
private Timestamp birthday;
/**
* 属性 [EMAIL]
*
*/
@JSONField(name = "email")
@JsonProperty("email")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("邮件")
private String email;
/**
* 属性 [AVATAR]
*
*/
@JSONField(name = "avatar")
@JsonProperty("avatar")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("社交账号")
private String avatar;
/**
* 属性 [ADDR]
*
*/
@JSONField(name = "addr")
@JsonProperty("addr")
@Size(min = 0, max = 255, message = "内容长度必须小于等于[255]")
@ApiModelProperty("地址")
private String addr;
/**
* 属性 [USERICON]
*
*/
@JSONField(name = "usericon")
@JsonProperty("usericon")
@Size(min = 0, max = 255, message = "内容长度必须小于等于[255]")
@ApiModelProperty("照片")
private String usericon;
/**
* 属性 [IPADDR]
*
*/
@JSONField(name = "ipaddr")
@JsonProperty("ipaddr")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("ip地址")
private String ipaddr;
/**
* 属性 [THEME]
*
*/
@JSONField(name = "theme")
@JsonProperty("theme")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("样式")
private String theme;
/**
* 属性 [LANG]
*
*/
@JSONField(name = "lang")
@JsonProperty("lang")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("语言")
private String lang;
/**
* 属性 [FONTSIZE]
*
*/
@JSONField(name = "fontsize")
@JsonProperty("fontsize")
@Size(min = 0, max = 10, message = "内容长度必须小于等于[10]")
@ApiModelProperty("字号")
private String fontsize;
/**
* 属性 [MEMO]
*
*/
@JSONField(name = "memo")
@JsonProperty("memo")
@Size(min = 0, max = 255, message = "内容长度必须小于等于[255]")
@ApiModelProperty("备注")
private String memo;
/**
* 属性 [RESERVER]
*
*/
@JSONField(name = "reserver")
@JsonProperty("reserver")
@Size(min = 0, max = 255, message = "内容长度必须小于等于[255]")
@ApiModelProperty("保留")
private String reserver;
/**
* 属性 [SHOWORDER]
*
*/
@JSONField(name = "showorder")
@JsonProperty("showorder")
@ApiModelProperty("排序")
private Integer showorder;
/**
* 属性 [ENABLE]
*
*/
@JSONField(name = "enable")
@JsonProperty("enable")
@ApiModelProperty("逻辑有效")
private Integer enable;
/**
* 属性 [CREATEDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
@ApiModelProperty("创建时间")
private Timestamp createdate;
/**
* 属性 [UPDATEDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
@ApiModelProperty("最后修改时间")
private Timestamp updatedate;
/**
* 设置 [USERNAME]
*/
public void setUsername(String username){
this.username = username ;
this.modify("username",username);
}
/**
* 设置 [PERSONNAME]
*/
public void setPersonname(String personname){
this.personname = personname ;
this.modify("personname",personname);
}
/**
* 设置 [USERCODE]
*/
public void setUsercode(String usercode){
this.usercode = usercode ;
this.modify("usercode",usercode);
}
/**
* 设置 [LOGINNAME]
*/
public void setLoginname(String loginname){
this.loginname = loginname ;
this.modify("loginname",loginname);
}
/**
* 设置 [PASSWORD]
*/
public void setPassword(String password){
this.password = password ;
this.modify("password",password);
}
/**
* 设置 [DOMAINS]
*/
public void setDomains(String domains){
this.domains = domains ;
this.modify("domains",domains);
}
/**
* 设置 [MDEPTID]
*/
public void setMdeptid(String mdeptid){
this.mdeptid = mdeptid ;
this.modify("mdeptid",mdeptid);
}
/**
* 设置 [MDEPTCODE]
*/
public void setMdeptcode(String mdeptcode){
this.mdeptcode = mdeptcode ;
this.modify("mdeptcode",mdeptcode);
}
/**
* 设置 [MDEPTNAME]
*/
public void setMdeptname(String mdeptname){
this.mdeptname = mdeptname ;
this.modify("mdeptname",mdeptname);
}
/**
* 设置 [BCODE]
*/
public void setBcode(String bcode){
this.bcode = bcode ;
this.modify("bcode",bcode);
}
/**
* 设置 [POSTID]
*/
public void setPostid(String postid){
this.postid = postid ;
this.modify("postid",postid);
}
/**
* 设置 [POSTCODE]
*/
public void setPostcode(String postcode){
this.postcode = postcode ;
this.modify("postcode",postcode);
}
/**
* 设置 [POSTNAME]
*/
public void setPostname(String postname){
this.postname = postname ;
this.modify("postname",postname);
}
/**
* 设置 [ORGCODE]
*/
public void setOrgcode(String orgcode){
this.orgcode = orgcode ;
this.modify("orgcode",orgcode);
}
/**
* 设置 [NICKNAME]
*/
public void setNickname(String nickname){
this.nickname = nickname ;
this.modify("nickname",nickname);
}
/**
* 设置 [SEX]
*/
public void setSex(String sex){
this.sex = sex ;
this.modify("sex",sex);
}
/**
* 设置 [CERTCODE]
*/
public void setCertcode(String certcode){
this.certcode = certcode ;
this.modify("certcode",certcode);
}
/**
* 设置 [PHONE]
*/
public void setPhone(String phone){
this.phone = phone ;
this.modify("phone",phone);
}
/**
* 设置 [BIRTHDAY]
*/
public void setBirthday(Timestamp birthday){
this.birthday = birthday ;
this.modify("birthday",birthday);
}
/**
* 设置 [EMAIL]
*/
public void setEmail(String email){
this.email = email ;
this.modify("email",email);
}
/**
* 设置 [AVATAR]
*/
public void setAvatar(String avatar){
this.avatar = avatar ;
this.modify("avatar",avatar);
}
/**
* 设置 [ADDR]
*/
public void setAddr(String addr){
this.addr = addr ;
this.modify("addr",addr);
}
/**
* 设置 [USERICON]
*/
public void setUsericon(String usericon){
this.usericon = usericon ;
this.modify("usericon",usericon);
}
/**
* 设置 [IPADDR]
*/
public void setIpaddr(String ipaddr){
this.ipaddr = ipaddr ;
this.modify("ipaddr",ipaddr);
}
/**
* 设置 [THEME]
*/
public void setTheme(String theme){
this.theme = theme ;
this.modify("theme",theme);
}
/**
* 设置 [LANG]
*/
public void setLang(String lang){
this.lang = lang ;
this.modify("lang",lang);
}
/**
* 设置 [FONTSIZE]
*/
public void setFontsize(String fontsize){
this.fontsize = fontsize ;
this.modify("fontsize",fontsize);
}
/**
* 设置 [MEMO]
*/
public void setMemo(String memo){
this.memo = memo ;
this.modify("memo",memo);
}
/**
* 设置 [RESERVER]
*/
public void setReserver(String reserver){
this.reserver = reserver ;
this.modify("reserver",reserver);
}
/**
* 设置 [SHOWORDER]
*/
public void setShoworder(Integer showorder){
this.showorder = showorder ;
this.modify("showorder",showorder);
}
}