修复时间字段的传递
This commit is contained in:
@@ -43,6 +43,7 @@ public class FlowableHistory {
|
|||||||
this.instanceId = history.getInstanceId();
|
this.instanceId = history.getInstanceId();
|
||||||
this.action = history.getAction();
|
this.action = history.getAction();
|
||||||
this.comment = history.getComment();
|
this.comment = history.getComment();
|
||||||
|
this.createdTime = history.getCreatedTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
public com.lanyuanxiaoyao.flowable.core.model.FlowableHistory toFlowableHistory() {
|
public com.lanyuanxiaoyao.flowable.core.model.FlowableHistory toFlowableHistory() {
|
||||||
|
|||||||
@@ -61,6 +61,8 @@ public class FlowableInstance {
|
|||||||
this.currentNodeId = instance.getCurrentNodeId();
|
this.currentNodeId = instance.getCurrentNodeId();
|
||||||
this.status = instance.getStatus();
|
this.status = instance.getStatus();
|
||||||
this.extra = instance.getExtra();
|
this.extra = instance.getExtra();
|
||||||
|
this.createdTime = instance.getCreatedTime();
|
||||||
|
this.updatedTime = instance.getUpdatedTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static byte[] objectToBytes(Object object) throws IOException {
|
private static byte[] objectToBytes(Object object) throws IOException {
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ public class FlowableNode {
|
|||||||
@CreatedDate
|
@CreatedDate
|
||||||
private LocalDateTime createdTime;
|
private LocalDateTime createdTime;
|
||||||
@LastModifiedDate
|
@LastModifiedDate
|
||||||
private LocalDateTime updateTime;
|
private LocalDateTime updatedTime;
|
||||||
|
|
||||||
public FlowableNode(com.lanyuanxiaoyao.flowable.core.model.FlowableNode node) {
|
public FlowableNode(com.lanyuanxiaoyao.flowable.core.model.FlowableNode node) {
|
||||||
this.nodeId = node.getNodeId();
|
this.nodeId = node.getNodeId();
|
||||||
@@ -70,6 +70,8 @@ public class FlowableNode {
|
|||||||
this.targets = node.getTargets();
|
this.targets = node.getTargets();
|
||||||
this.accessor = node.getAccessor();
|
this.accessor = node.getAccessor();
|
||||||
this.listeners = node.getListeners();
|
this.listeners = node.getListeners();
|
||||||
|
this.createdTime = node.getCreatedTime();
|
||||||
|
this.updatedTime = node.getUpdatedTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
public com.lanyuanxiaoyao.flowable.core.model.FlowableNode toFlowableNode() {
|
public com.lanyuanxiaoyao.flowable.core.model.FlowableNode toFlowableNode() {
|
||||||
@@ -83,7 +85,7 @@ public class FlowableNode {
|
|||||||
.accessor(accessor)
|
.accessor(accessor)
|
||||||
.listeners(listeners)
|
.listeners(listeners)
|
||||||
.createdTime(createdTime)
|
.createdTime(createdTime)
|
||||||
.updatedTime(updateTime)
|
.updatedTime(updatedTime)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user