租户改为从header获取

This commit is contained in:
zy 2026-03-18 10:36:41 +08:00
parent 3029e6724e
commit c4092229f6
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ public class CommonServiceImpl {
String tenantId = HttpServletRequestUtil.getRequestInfo(CommonConstants.HEADER_TENANT_ID);
if(StringUtils.isNotBlank(tenantId)){
getTenantId(commonDTO.getAuthId());
getTenantId(tenantId);
}else{
TenantContext.setTenant(CommonConstants.defaultTenant);//设置当前租户
}