|
|
@ -59,7 +59,7 @@ public class TenantHelper {
|
|
|
|
TEMP_DYNAMIC_TENANT.set(tenantId);
|
|
|
|
TEMP_DYNAMIC_TENANT.set(tenantId);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String cacheKey = DYNAMIC_TENANT_KEY + ":" + LoginHelper.getTenantId();
|
|
|
|
String cacheKey = DYNAMIC_TENANT_KEY + ":" + LoginHelper.getUserId();
|
|
|
|
RedisUtils.setCacheObject(cacheKey, tenantId);
|
|
|
|
RedisUtils.setCacheObject(cacheKey, tenantId);
|
|
|
|
SaHolder.getStorage().set(cacheKey, tenantId);
|
|
|
|
SaHolder.getStorage().set(cacheKey, tenantId);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -91,7 +91,7 @@ public class TenantHelper {
|
|
|
|
TEMP_DYNAMIC_TENANT.remove();
|
|
|
|
TEMP_DYNAMIC_TENANT.remove();
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String cacheKey = DYNAMIC_TENANT_KEY + ":" + LoginHelper.getTenantId();
|
|
|
|
String cacheKey = DYNAMIC_TENANT_KEY + ":" + LoginHelper.getUserId();
|
|
|
|
RedisUtils.deleteObject(cacheKey);
|
|
|
|
RedisUtils.deleteObject(cacheKey);
|
|
|
|
SaHolder.getStorage().delete(cacheKey);
|
|
|
|
SaHolder.getStorage().delete(cacheKey);
|
|
|
|
}
|
|
|
|
}
|
|
|
|