Task.java
18.3 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
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
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
/**
* @(#)Task.java Copyright (c) 2014-2014 苏州犀牛网络科技有限公司 版权所有
* xiniunet. All rights reserved.
* <p>
* This software is the confidential and proprietary
* information of xiniunet.
* ("Confidential Information"). You shall not disclose
* such Confidential Information and shall use it only
* in accordance with the terms of the contract agreement
* you entered into with xiniunet.
*/
package com.xiniunet.task.domain;
import com.alibaba.fastjson.JSON;
import com.xiniunet.foundation.domain.Attachment;
import com.xiniunet.framework.base.BaseDomain;
import com.xiniunet.task.enumeration.PrioityEnum;
import com.xiniunet.task.enumeration.TaskObjectCategoryEnum;
import com.xiniunet.task.enumeration.TaskObjectTypeEnum;
import com.xiniunet.task.enumeration.UserRoleEnum;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
/**
* Created by 沈振家 on 2016-11-28 16:23:01.
* @author 沈振家
*/
public class Task extends BaseDomain {
/**
* 主键
*/
private Long id;
/**
* 承租人ID
*/
private Long tenantId;
/**
* 对象类型
*/
private TaskObjectTypeEnum objectType;
/**
* 对象ID
*/
private Long objectId;
/**
* 对象分类
*/
private TaskObjectCategoryEnum objectCategory;
/**
* 对象名称
*/
private String objectName;
/**
* 拼音
*/
private String objectNamePinyin;
/**
* 拼音缩写
*/
private String objectNamePy;
/**
* 对象描述
*/
private String objectDescription;
/**
* 对象链接,
*/
private String objectUrl;
/**
* 负责人用户ID
*/
private Long ownerUserId;
/**
* 负责人用户姓名
*/
private String ownerUserName;
/**
* 是否星标
*/
private Boolean isStar;
/**
* 优先级
*/
private PrioityEnum prioity;
/**
* 是否有截止日
*/
private Boolean hasDeadline;
/**
* 截止日
*/
private Date deadlineDate;
/**
* 是否需要提醒
*/
private Boolean needReminding;
/**
* 提前多少时间提醒
*/
private Integer aheadTimeCount;
/**
* 提醒时间
*/
private Date remindingTime;
/**
* 完成度
*/
private Double complete;
/**
* 产品ID
*/
private Long productId;
/**
* 应用ID
*/
private Long applicationId;
/**
* 项目ID
*/
private Long projectId;
/**
* 是否有子任务
*/
private Boolean hasSubtask;
/**
* 子任务数目
*/
private Integer subtaskCount;
/**
* 完成子任务数据
*/
private Integer subtaskDoneCount;
/**
* 任务清单ID
*/
private Long listId;
/**
* 是否完成
*/
private Boolean isDone;
/**
* 完成用户ID
*/
private Long doUserId;
/**
* 完成用户姓名
*/
private String doUserName;
/**
* 完成时间
*/
private Date doTime;
/**
* 完成信息
*/
private String doneMessage;
/**
* 是否过期
*/
private Boolean isOverdue;
/**
* 是否有附件
*/
private Boolean hasAttachment;
private Timestamp creationTime;
private Timestamp lastUpdateTime;
/**
* 任务分配人
*/
private List<TaskUser> userList;
/**
* 抄送人
*/
private List<TaskUser> ccUserList;
/**
* 开始时间
*/
private Date beginTime;
/**
* 结束时间
*/
private Date endTime;
/**
* 是否终止,
*/
private Boolean isAbort;
/**
* 终止人id,
*/
private Long abortUserId;
/**
* 终止人名称,
*/
private String abortUserName;
/**
* 终止时间,
*/
private Date abortTime;
/**
* 终止原因,
*/
private String abortReason;
/**
* 是否延期,
*/
private Boolean isDelay;
/**
* 延期用户id,
*/
private Long delayUserId;
/**
* 延期用户名称,
*/
private String delayUserName;
/**
* 延期时间,
*/
private Date delayTime;
/**
* 延期原因,
*/
private String delayReason;
/**
* 附件集合
*/
private List<Attachment> attachmentList;
//兼容taskUser属性
/**
* 任务ID,
*/
private Long taskId;
/**
* 任务名称,
*/
private String taskName;
/**
* 用户ID,
*/
private Long userId;
/**
* 用户姓名,
*/
private String userName;
/**
* 是否置顶
*/
private Boolean isTop;
/**
* 置顶排序
*/
private Integer topIndex;
/**
* 用户类型
*/
private UserRoleEnum userRole;
/**
* 未读历史修改记录数
*/
private Integer historyCount;
/**
* 未读进展数量数
*/
private Integer commentCount;
/**
* 最后动态更新时间
*/
private Date lastDynamicTime;
/**
* 未读信息
*/
private Integer unReadCount;
/**
* 头像地址(创建人的头像)
*/
private String avarUrl;
/**
* 进度
*/
private Integer processPercent;
/**
* 是否周一提醒,
*/
private Boolean alarmWeek1;
/**
* 是否周二提醒,
*/
private Boolean alarmWeek2;
/**
* 是否周三提醒,
*/
private Boolean alarmWeek3;
/**
* 是否周四提醒,
*/
private Boolean alarmWeek4;
/**
* 是否周五提醒,
*/
private Boolean alarmWeek5;
/**
* 是否周六提醒,
*/
private Boolean alarmWeek6;
/**
* 是否周日提醒,
*/
private Boolean alarmWeek7;
/**
* 固定时间,
*/
private Date alarmTime;
/**
* 关联任务i集合
*/
private List<Task> relatedTaskList;
public List<Task> getRelatedTaskList() {
return relatedTaskList;
}
public void setRelatedTaskList(List<Task> relatedTaskList) {
this.relatedTaskList = relatedTaskList;
}
public void setRelatedTaskList(String relatedTaskList) {
this.relatedTaskList = JSON.parseArray(relatedTaskList,Task.class);
}
public Integer getAheadTimeCount() {
return aheadTimeCount;
}
public void setAheadTimeCount(Integer aheadTimeCount) {
this.aheadTimeCount = aheadTimeCount;
}
public Boolean getAlarmWeek1() {
return alarmWeek1;
}
public void setAlarmWeek1(Boolean alarmWeek1) {
this.alarmWeek1 = alarmWeek1;
}
public Boolean getAlarmWeek2() {
return alarmWeek2;
}
public void setAlarmWeek2(Boolean alarmWeek2) {
this.alarmWeek2 = alarmWeek2;
}
public Boolean getAlarmWeek3() {
return alarmWeek3;
}
public void setAlarmWeek3(Boolean alarmWeek3) {
this.alarmWeek3 = alarmWeek3;
}
public Boolean getAlarmWeek4() {
return alarmWeek4;
}
public void setAlarmWeek4(Boolean alarmWeek4) {
this.alarmWeek4 = alarmWeek4;
}
public Boolean getAlarmWeek5() {
return alarmWeek5;
}
public void setAlarmWeek5(Boolean alarmWeek5) {
this.alarmWeek5 = alarmWeek5;
}
public Boolean getAlarmWeek6() {
return alarmWeek6;
}
public void setAlarmWeek6(Boolean alarmWeek6) {
this.alarmWeek6 = alarmWeek6;
}
public Boolean getAlarmWeek7() {
return alarmWeek7;
}
public void setAlarmWeek7(Boolean alarmWeek7) {
this.alarmWeek7 = alarmWeek7;
}
public Date getAlarmTime() {
return alarmTime;
}
public void setAlarmTime(Date alarmTime) {
this.alarmTime = alarmTime;
}
public Integer getProcessPercent() {
return processPercent;
}
public void setProcessPercent(Integer processPercent) {
this.processPercent = processPercent;
}
public String getAvarUrl() {
return avarUrl;
}
public void setAvarUrl(String avarUrl) {
this.avarUrl = avarUrl;
}
public Integer getUnReadCount() {
return unReadCount;
}
public void setUnReadCount(Integer unReadCount) {
this.unReadCount = unReadCount;
}
public Long getTaskId() {
return taskId;
}
public void setTaskId(Long taskId) {
this.taskId = taskId;
}
public String getTaskName() {
return taskName;
}
public void setTaskName(String taskName) {
this.taskName = taskName;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public Boolean getIsTop() {
return isTop;
}
public void setIsTop(Boolean top) {
isTop = top;
}
public Integer getTopIndex() {
return topIndex;
}
public void setTopIndex(Integer topIndex) {
this.topIndex = topIndex;
}
public UserRoleEnum getUserRole() {
return userRole;
}
public void setUserRole(UserRoleEnum userRole) {
this.userRole = userRole;
}
public Integer getHistoryCount() {
return historyCount;
}
public void setHistoryCount(Integer historyCount) {
this.historyCount = historyCount;
}
public Integer getCommentCount() {
return commentCount;
}
public void setCommentCount(Integer commentCount) {
this.commentCount = commentCount;
}
public Date getLastDynamicTime() {
return lastDynamicTime;
}
public void setLastDynamicTime(Date lastDynamicTime) {
this.lastDynamicTime = lastDynamicTime;
}
public String getDoneMessage() {
return doneMessage;
}
public void setDoneMessage(String doneMessage) {
this.doneMessage = doneMessage;
}
public List<Attachment> getAttachmentList() {
return attachmentList;
}
public void setAttachmentList(List<Attachment> attachmentList) {
this.attachmentList = attachmentList;
}
public Boolean getIsDelay() {
return isDelay;
}
public void setIsDelay(Boolean delay) {
isDelay = delay;
}
public Long getDelayUserId() {
return delayUserId;
}
public void setDelayUserId(Long delayUserId) {
this.delayUserId = delayUserId;
}
public String getDelayUserName() {
return delayUserName;
}
public void setDelayUserName(String delayUserName) {
this.delayUserName = delayUserName;
}
public Date getDelayTime() {
return delayTime;
}
public void setDelayTime(Date delayTime) {
this.delayTime = delayTime;
}
public String getDelayReason() {
return delayReason;
}
public void setDelayReason(String delayReason) {
this.delayReason = delayReason;
}
public Boolean getIsAbort() {
return isAbort;
}
public void setIsAbort(Boolean abort) {
isAbort = abort;
}
public Long getAbortUserId() {
return abortUserId;
}
public void setAbortUserId(Long abortUserId) {
this.abortUserId = abortUserId;
}
public String getAbortUserName() {
return abortUserName;
}
public void setAbortUserName(String abortUserName) {
this.abortUserName = abortUserName;
}
public Date getAbortTime() {
return abortTime;
}
public void setAbortTime(Date abortTime) {
this.abortTime = abortTime;
}
public String getAbortReason() {
return abortReason;
}
public void setAbortReason(String abortReason) {
this.abortReason = abortReason;
}
public Date getBeginTime() {
return beginTime;
}
public void setBeginTime(Date beginTime) {
this.beginTime = beginTime;
}
public Date getEndTime() {
return endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public List<TaskUser> getCcUserList() {
return ccUserList;
}
public void setCcUserList(List<TaskUser> ccUserList) {
this.ccUserList = ccUserList;
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public Long getTenantId() {
return this.tenantId;
}
public void setTenantId(Long tenantId) {
this.tenantId = tenantId;
}
public TaskObjectTypeEnum getObjectType() {
return this.objectType;
}
public void setObjectType(TaskObjectTypeEnum objectType) {
this.objectType = objectType;
}
public Long getObjectId() {
return this.objectId;
}
public void setObjectId(Long objectId) {
this.objectId = objectId;
}
public TaskObjectCategoryEnum getObjectCategory() {
return this.objectCategory;
}
public void setObjectCategory(TaskObjectCategoryEnum objectCategory) {
this.objectCategory = objectCategory;
}
public String getObjectName() {
return this.objectName;
}
public void setObjectName(String objectName) {
this.objectName = objectName;
}
public String getObjectNamePinyin() {
return objectNamePinyin;
}
public void setObjectNamePinyin(String objectNamePinyin) {
this.objectNamePinyin = objectNamePinyin;
}
public String getObjectNamePy() {
return objectNamePy;
}
public void setObjectNamePy(String objectNamePy) {
this.objectNamePy = objectNamePy;
}
public String getObjectDescription() {
return this.objectDescription;
}
public void setObjectDescription(String objectDescription) {
this.objectDescription = objectDescription;
}
public String getObjectUrl() {
return objectUrl;
}
public void setObjectUrl(String objectUrl) {
this.objectUrl = objectUrl;
}
public Long getOwnerUserId() {
return this.ownerUserId;
}
public void setOwnerUserId(Long ownerUserId) {
this.ownerUserId = ownerUserId;
}
public String getOwnerUserName() {
return this.ownerUserName;
}
public void setOwnerUserName(String ownerUserName) {
this.ownerUserName = ownerUserName;
}
public Boolean getIsStar() {
return this.isStar;
}
public void setIsStar(Boolean isStar) {
this.isStar = isStar;
}
public PrioityEnum getPrioity() {
return this.prioity;
}
public void setPrioity(PrioityEnum prioity) {
this.prioity = prioity;
}
public Boolean getHasDeadline() {
return this.hasDeadline;
}
public void setHasDeadline(Boolean hasDeadline) {
this.hasDeadline = hasDeadline;
}
public Date getDeadlineDate() {
return this.deadlineDate;
}
public void setDeadlineDate(Date deadlineDate) {
this.deadlineDate = deadlineDate;
}
public Boolean getNeedReminding() {
return this.needReminding;
}
public void setNeedReminding(Boolean needReminding) {
this.needReminding = needReminding;
}
public Date getRemindingTime() {
return remindingTime;
}
public void setRemindingTime(Date remindingTime) {
this.remindingTime = remindingTime;
}
public Double getComplete() {
return this.complete;
}
public void setComplete(Double complete) {
this.complete = complete;
}
public Long getProductId() {
return this.productId;
}
public void setProductId(Long productId) {
this.productId = productId;
}
public Long getApplicationId() {
return this.applicationId;
}
public void setApplicationId(Long applicationId) {
this.applicationId = applicationId;
}
public Long getProjectId() {
return this.projectId;
}
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public Boolean getHasSubtask() {
return this.hasSubtask;
}
public void setHasSubtask(Boolean hasSubtask) {
this.hasSubtask = hasSubtask;
}
public Integer getSubtaskCount() {
return this.subtaskCount;
}
public void setSubtaskCount(Integer subtaskCount) {
this.subtaskCount = subtaskCount;
}
public Integer getSubtaskDoneCount() {
return this.subtaskDoneCount;
}
public void setSubtaskDoneCount(Integer subtaskDoneCount) {
this.subtaskDoneCount = subtaskDoneCount;
}
public Long getListId() {
return this.listId;
}
public void setListId(Long listId) {
this.listId = listId;
}
public Boolean getIsDone() {
return this.isDone;
}
public void setIsDone(Boolean isDone) {
this.isDone = isDone;
}
public Long getDoUserId() {
return this.doUserId;
}
public void setDoUserId(Long doUserId) {
this.doUserId = doUserId;
}
public String getDoUserName() {
return this.doUserName;
}
public void setDoUserName(String doUserName) {
this.doUserName = doUserName;
}
public Date getDoTime() {
return this.doTime;
}
public void setDoTime(Date doTime) {
this.doTime = doTime;
}
public Boolean getIsOverdue() {
return isOverdue;
}
public void setIsOverdue(Boolean isOverdue) {
this.isOverdue = isOverdue;
}
public Boolean getHasAttachment() {
return hasAttachment;
}
public void setHasAttachment(Boolean hasAttachment) {
this.hasAttachment = hasAttachment;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public Timestamp getLastUpdateTime() {
return lastUpdateTime;
}
public void setLastUpdateTime(Timestamp lastUpdateTime) {
this.lastUpdateTime = lastUpdateTime;
}
public List<TaskUser> getUserList() {
return userList;
}
public void setUserList(List<TaskUser> userList) {
this.userList = userList;
}
}