fix 遗漏动态租户修改内容

feature/model
Yjoioooo 2 years ago
parent 53cb1c801f
commit 520cbec1b3

@ -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);
} }

Loading…
Cancel
Save