Commit 81bcf718cd986bd9ed68ffec31e322a5cc27afe4
1 parent
0917b621
BPM:解决租户关闭时,Flowable 查询会报错的问题
Showing
1 changed file
with
0 additions
and
11 deletions
yudao-framework/yudao-spring-boot-starter-biz-tenant/src/main/java/cn/iocoder/yudao/framework/tenant/core/context/TenantContextHolder.java
| 1 | package cn.iocoder.yudao.framework.tenant.core.context; | 1 | package cn.iocoder.yudao.framework.tenant.core.context; |
| 2 | 2 | ||
| 3 | -import cn.hutool.core.util.StrUtil; | ||
| 4 | import cn.iocoder.yudao.framework.common.enums.DocumentEnum; | 3 | import cn.iocoder.yudao.framework.common.enums.DocumentEnum; |
| 5 | import com.alibaba.ttl.TransmittableThreadLocal; | 4 | import com.alibaba.ttl.TransmittableThreadLocal; |
| 6 | 5 | ||
| @@ -31,16 +30,6 @@ public class TenantContextHolder { | @@ -31,16 +30,6 @@ public class TenantContextHolder { | ||
| 31 | } | 30 | } |
| 32 | 31 | ||
| 33 | /** | 32 | /** |
| 34 | - * 获得租户编号 String | ||
| 35 | - * | ||
| 36 | - * @return 租户编号 | ||
| 37 | - */ | ||
| 38 | - public static String getTenantIdStr() { | ||
| 39 | - Long tenantId = getTenantId(); | ||
| 40 | - return StrUtil.toStringOrNull(tenantId); | ||
| 41 | - } | ||
| 42 | - | ||
| 43 | - /** | ||
| 44 | * 获得租户编号。如果不存在,则抛出 NullPointerException 异常 | 33 | * 获得租户编号。如果不存在,则抛出 NullPointerException 异常 |
| 45 | * | 34 | * |
| 46 | * @return 租户编号 | 35 | * @return 租户编号 |