24282 il y a 2 ans
Parent
commit
e65cb9d14f

+ 5 - 0
hx-flow/src/main/java/com/fjhx/flow/entity/flow/po/FlowExample.java

@@ -61,6 +61,11 @@ public class FlowExample extends BasePo {
     private String startData;
 
     /**
+     * 流程定义版本号
+     */
+    private Integer definitionVersion;
+
+    /**
      * 实例版本
      */
     @Version

+ 1 - 0
hx-flow/src/main/java/com/fjhx/flow/service/flow/impl/FlowProcessServiceImpl.java

@@ -175,6 +175,7 @@ public class FlowProcessServiceImpl implements FlowProcessService {
         flowExample.setDefinitionNodeId(nextUserNode.getId());
         flowExample.setBusinessId(businessId);
         flowExample.setStartData(dto.getData().toJSONString());
+        flowExample.setDefinitionVersion(flowDefinition.getVersionNumber());
 
         flowExampleService.save(flowExample);
         flowExampleDetailService.saveBatch(flowExampleDetailList);