| @@ -96,15 +96,15 @@ public class BaseController { | |||||
| HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest(); | HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest(); | ||||
| String tenantId = (String) request.getAttribute(Constant.TENANT_ID); | String tenantId = (String) request.getAttribute(Constant.TENANT_ID); | ||||
| String parentTenantId = (String) request.getAttribute(Constant.PARENT_TENANT_ID); | String parentTenantId = (String) request.getAttribute(Constant.PARENT_TENANT_ID); | ||||
| TenantEntity tenantEntity = new TenantEntity() {{ | |||||
| setTenantId(tenantId); | |||||
| setParentTenantId(parentTenantId); | |||||
| }}; | |||||
| TenantEntity tenantEntity = new TenantEntity() ; | |||||
| tenantEntity.setTenantId(tenantId); | |||||
| tenantEntity.setParentTenantId(parentTenantId); | |||||
| return tenantEntity; | return tenantEntity; | ||||
| } | } | ||||
| public String getFinalTenantId() { | public String getFinalTenantId() { | ||||
| TenantEntity tenantEntity = getTenantInfo(); | TenantEntity tenantEntity = getTenantInfo(); | ||||
| String tenantId = tenantEntity.getTenantId(); | |||||
| return tenantEntity.getFinalTenantId(); | return tenantEntity.getFinalTenantId(); | ||||
| } | } | ||||