From 1cc8bb56182f98f984952e88149e614c79ee4e81 Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Tue, 7 Jan 2025 17:09:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=B6=E9=97=B4=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E7=9A=84=E4=BC=A0=E9=80=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lanyuanxiaoyao/flowable/jpa/entity/FlowableHistory.java | 1 + .../flowable/jpa/entity/FlowableInstance.java | 2 ++ .../lanyuanxiaoyao/flowable/jpa/entity/FlowableNode.java | 6 ++++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/adapter/flowable-spring-boot-jpa-starter/src/main/java/com/lanyuanxiaoyao/flowable/jpa/entity/FlowableHistory.java b/adapter/flowable-spring-boot-jpa-starter/src/main/java/com/lanyuanxiaoyao/flowable/jpa/entity/FlowableHistory.java index fcd7c71..7be752b 100644 --- a/adapter/flowable-spring-boot-jpa-starter/src/main/java/com/lanyuanxiaoyao/flowable/jpa/entity/FlowableHistory.java +++ b/adapter/flowable-spring-boot-jpa-starter/src/main/java/com/lanyuanxiaoyao/flowable/jpa/entity/FlowableHistory.java @@ -43,6 +43,7 @@ public class FlowableHistory { this.instanceId = history.getInstanceId(); this.action = history.getAction(); this.comment = history.getComment(); + this.createdTime = history.getCreatedTime(); } public com.lanyuanxiaoyao.flowable.core.model.FlowableHistory toFlowableHistory() { diff --git a/adapter/flowable-spring-boot-jpa-starter/src/main/java/com/lanyuanxiaoyao/flowable/jpa/entity/FlowableInstance.java b/adapter/flowable-spring-boot-jpa-starter/src/main/java/com/lanyuanxiaoyao/flowable/jpa/entity/FlowableInstance.java index 4cf13bf..7ec5789 100644 --- a/adapter/flowable-spring-boot-jpa-starter/src/main/java/com/lanyuanxiaoyao/flowable/jpa/entity/FlowableInstance.java +++ b/adapter/flowable-spring-boot-jpa-starter/src/main/java/com/lanyuanxiaoyao/flowable/jpa/entity/FlowableInstance.java @@ -61,6 +61,8 @@ public class FlowableInstance { this.currentNodeId = instance.getCurrentNodeId(); this.status = instance.getStatus(); this.extra = instance.getExtra(); + this.createdTime = instance.getCreatedTime(); + this.updatedTime = instance.getUpdatedTime(); } private static byte[] objectToBytes(Object object) throws IOException { diff --git a/adapter/flowable-spring-boot-jpa-starter/src/main/java/com/lanyuanxiaoyao/flowable/jpa/entity/FlowableNode.java b/adapter/flowable-spring-boot-jpa-starter/src/main/java/com/lanyuanxiaoyao/flowable/jpa/entity/FlowableNode.java index 8658942..f82403c 100644 --- a/adapter/flowable-spring-boot-jpa-starter/src/main/java/com/lanyuanxiaoyao/flowable/jpa/entity/FlowableNode.java +++ b/adapter/flowable-spring-boot-jpa-starter/src/main/java/com/lanyuanxiaoyao/flowable/jpa/entity/FlowableNode.java @@ -59,7 +59,7 @@ public class FlowableNode { @CreatedDate private LocalDateTime createdTime; @LastModifiedDate - private LocalDateTime updateTime; + private LocalDateTime updatedTime; public FlowableNode(com.lanyuanxiaoyao.flowable.core.model.FlowableNode node) { this.nodeId = node.getNodeId(); @@ -70,6 +70,8 @@ public class FlowableNode { this.targets = node.getTargets(); this.accessor = node.getAccessor(); this.listeners = node.getListeners(); + this.createdTime = node.getCreatedTime(); + this.updatedTime = node.getUpdatedTime(); } public com.lanyuanxiaoyao.flowable.core.model.FlowableNode toFlowableNode() { @@ -83,7 +85,7 @@ public class FlowableNode { .accessor(accessor) .listeners(listeners) .createdTime(createdTime) - .updatedTime(updateTime) + .updatedTime(updatedTime) .build(); } }