|
|
|
@ -8,6 +8,7 @@ import cn.hutool.core.util.ObjectUtil;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
import com.ruoyi.common.core.constant.Constants;
|
|
|
|
|
import com.ruoyi.common.core.constant.GlobalConstants;
|
|
|
|
|
import com.ruoyi.common.core.constant.TenantConstants;
|
|
|
|
|
import com.ruoyi.common.core.domain.dto.RoleDTO;
|
|
|
|
|
import com.ruoyi.common.core.domain.model.LoginUser;
|
|
|
|
|
import com.ruoyi.common.core.domain.model.XcxLoginUser;
|
|
|
|
@ -325,6 +326,9 @@ public class SysLoginService {
|
|
|
|
|
if (!TenantHelper.isEnable()) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (TenantConstants.DEFAULT_TENANT_ID.equals(tenantId)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
SysTenantVo tenant = tenantService.queryByTenantId(tenantId);
|
|
|
|
|
if (ObjectUtil.isNull(tenant)) {
|
|
|
|
|
log.info("登录租户:{} 不存在.", tenantId);
|
|
|
|
|