Browse Source

Merge remote-tracking branch 'origin/master'

master
yunuo970428 2 months ago
parent
commit
8aa9c1b3bf
  1. 3
      anrui-flowable/anrui-flowable-biz/src/main/java/com/yxt/anrui/flowable/biz/flow2/FlowService.java

3
anrui-flowable/anrui-flowable-biz/src/main/java/com/yxt/anrui/flowable/biz/flow2/FlowService.java

@ -281,7 +281,8 @@ public class FlowService extends MybatisBaseService<FlowMapper, Flowable> {
Map<String, Object> variablesSeconds = bv.getFormVariables(); Map<String, Object> variablesSeconds = bv.getFormVariables();
//根据流程定义id查询 //根据流程定义id查询
ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().processDefinitionId(procDefId) ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().processDefinitionId(procDefId)
.latestVersion().singleResult(); // .latestVersion()
.singleResult();
if (Objects.nonNull(processDefinition) && processDefinition.isSuspended()) { if (Objects.nonNull(processDefinition) && processDefinition.isSuspended()) {
return rb.setMsg("流程已被挂起,请先激活流程"); return rb.setMsg("流程已被挂起,请先激活流程");
} }

Loading…
Cancel
Save