mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 04:08:43 +08:00 
			
		
		
		
	BPM:解决租户关闭时,Flowable 查询会报错的问题
This commit is contained in:
		@@ -1,6 +1,5 @@
 | 
				
			|||||||
package cn.iocoder.yudao.framework.tenant.core.context;
 | 
					package cn.iocoder.yudao.framework.tenant.core.context;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import cn.hutool.core.util.StrUtil;
 | 
					 | 
				
			||||||
import cn.iocoder.yudao.framework.common.enums.DocumentEnum;
 | 
					import cn.iocoder.yudao.framework.common.enums.DocumentEnum;
 | 
				
			||||||
import com.alibaba.ttl.TransmittableThreadLocal;
 | 
					import com.alibaba.ttl.TransmittableThreadLocal;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -30,16 +29,6 @@ public class TenantContextHolder {
 | 
				
			|||||||
        return TENANT_ID.get();
 | 
					        return TENANT_ID.get();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					 | 
				
			||||||
     * 获得租户编号 String
 | 
					 | 
				
			||||||
     *
 | 
					 | 
				
			||||||
     * @return 租户编号
 | 
					 | 
				
			||||||
     */
 | 
					 | 
				
			||||||
    public static String getTenantIdStr() {
 | 
					 | 
				
			||||||
        Long tenantId = getTenantId();
 | 
					 | 
				
			||||||
        return StrUtil.toStringOrNull(tenantId);
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * 获得租户编号。如果不存在,则抛出 NullPointerException 异常
 | 
					     * 获得租户编号。如果不存在,则抛出 NullPointerException 异常
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user