update 优化 getTenantId 判断是否开启多租户
This commit is contained in:
parent
d811cb8e04
commit
40ec6584c5
@ -167,6 +167,9 @@ public class TenantHelper {
|
||||
* 获取当前租户id(动态租户优先)
|
||||
*/
|
||||
public static String getTenantId() {
|
||||
if (!isEnable()) {
|
||||
return null;
|
||||
}
|
||||
String tenantId = TenantHelper.getDynamic();
|
||||
if (StringUtils.isBlank(tenantId)) {
|
||||
tenantId = LoginHelper.getTenantId();
|
||||
|
Loading…
x
Reference in New Issue
Block a user