From 31bd2c17088ec34072deabe106ff1d695c8b2b49 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期一, 11 十一月 2024 11:11:53 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- iailab-module-bpm/iailab-module-bpm-biz/src/main/java/com/iailab/module/bpm/service/definition/BpmProcessDefinitionServiceImpl.java | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/iailab-module-bpm/iailab-module-bpm-biz/src/main/java/com/iailab/module/bpm/service/definition/BpmProcessDefinitionServiceImpl.java b/iailab-module-bpm/iailab-module-bpm-biz/src/main/java/com/iailab/module/bpm/service/definition/BpmProcessDefinitionServiceImpl.java index 9f2de67..a59f234 100644 --- a/iailab-module-bpm/iailab-module-bpm-biz/src/main/java/com/iailab/module/bpm/service/definition/BpmProcessDefinitionServiceImpl.java +++ b/iailab-module-bpm/iailab-module-bpm-biz/src/main/java/com/iailab/module/bpm/service/definition/BpmProcessDefinitionServiceImpl.java @@ -195,7 +195,12 @@ query.active(); } // 执行查询 - query.processDefinitionTenantId(FlowableUtils.getTenantId()); + // 关闭多租户查询,不添加tenantId条件 + if (StrUtil.isNotBlank(FlowableUtils.getTenantId())) { + query.processDefinitionTenantId(FlowableUtils.getTenantId()); + } else { + query.processDefinitionWithoutTenantId(); + } return query.list(); } -- Gitblit v1.9.3