🔖 Releasing / Version tags. 2.2.0

This commit is contained in:
冷冷 committed 2019-01-29 07:27:34 +08:00
1 parent 59f612bde8
commit 7f4766d6de
1 file changed
-5
@@ -19,7 +19,6 @@ package com.pig4cloud.pigx.common.data.tenant;
import cn.hutool.core.util.StrUtil;
import com.pig4cloud.pigx.common.core.constant.CommonConstants;
import com.pig4cloud.pigx.common.security.util.SecurityUtils;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.Ordered;
@@ -51,10 +50,6 @@ public class TenantContextHolderFilter extends GenericFilterBean {
String tenantId = request.getHeader(CommonConstants.TENANT_ID);
log.debug("获取header中的租户ID为:{}", tenantId);
if (SecurityUtils.getUser() != null) {
tenantId = String.valueOf(SecurityUtils.getUser().getTenantId());
}
if (StrUtil.isNotBlank(tenantId)) {
TenantContextHolder.setTenantId(Integer.parseInt(tenantId));
} else {