fix: 修复createTask方法未设置createTime导致发起时间为空的问题
- 在createTask方法中添加createTime设置逻辑 - 确保所有创建的任务都有正确的创建时间 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
632bdd23d6
commit
f9a689dc1e
@ -254,6 +254,11 @@ public class TaskService {
|
||||
task.setIsDelayed(0);
|
||||
}
|
||||
|
||||
// 设置创建时间(如果未设置)
|
||||
if (task.getCreateTime() == null) {
|
||||
task.setCreateTime(LocalDateTime.now());
|
||||
}
|
||||
|
||||
// 【两级审核流程】初始化审核状态
|
||||
initApprovalStatus(task);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user