소스 검색

Merge remote-tracking branch 'origin/master'

caozj 2 년 전
부모
커밋
45bb0c256f
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      hx-flow/src/main/java/com/fjhx/flow/service/flow/impl/FlowProcessServiceImpl.java

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

@@ -93,7 +93,7 @@ public class FlowProcessServiceImpl implements FlowProcessService {
         }
 
         // 生成流程id
-        long flowId = IdWorker.getId();
+        final long flowId = IdWorker.getId();
 
         // 初始化模板参数
         Map<String, Object> templateMap = flowDelegate.initTemplateMap(dto.getData(), dto.getData());
@@ -167,6 +167,7 @@ public class FlowProcessServiceImpl implements FlowProcessService {
             flowExampleDetailList.add(endExampleDetail);
         }
 
+        flowExample.setId(flowId);
         flowExample.setTitle(templateParse(flowDefinition.getTitleTemplate(), templateMap));
         flowExample.setFlowKey(dto.getFlowKey());
         flowExample.setDefinitionId(flowDefinition.getId());