Task.java
9.49 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
/**
* @(#)Task.java
*
* Copyright (c) 2014-2014 苏州犀牛网络科技有限公司 版权所有
* xiniunet. All rights reserved.
*
* 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.xiniunet.framework.base.BaseDomain;
import com.xiniunet.framework.util.DateUtil;
import com.xiniunet.task.enumeration.PrioityEnum;
import com.xiniunet.task.enumeration.TaskObjectCategoryEnum;
import com.xiniunet.task.enumeration.TaskObjectTypeEnum;
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 Date remndingTime;
/**
* 完成度
*/
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 Boolean isOverdue;
/**
* 是否有附件
*/
private Boolean hasAttachment;
private Timestamp creationTime;
private Timestamp lastUpdateTime;
/**
* 任务分配人
*/
private List<TaskUser> userList;
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 getRemndingTime() {
return this.remndingTime;
}
public void setRemndingTime(Date remndingTime) {
this.remndingTime = remndingTime;
}
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() {
Boolean isOverdue = false;
if (this.isDone != null && !this.isDone
&& this.deadlineDate != null && this.deadlineDate.compareTo(DateUtil.getBeginOfDay(new Date())) < 0) {
isOverdue = true;
}
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;
}
}