| | |
| | | return ResponseValue.error("登录用户信息不存在"); |
| | | } |
| | | String tenantId = sysInfo.getTenantId(); |
| | | FinSysTenant finSysTenant = new FinSysTenant(); |
| | | finSysTenant.setTempId(Long.valueOf(tenantId)); |
| | | FinSysTenant userTenant = this.finSysTenantService.get(finSysTenant); |
| | | FinSysTenant userTenant = finSysTenantService.selectById(Long.valueOf(tenantId)); |
| | | Long parentId = userTenant.getParentId(); |
| | | // 第一级 |
| | | if (parentId == 0) { |
| | | return ResponseValue.success(userTenant); |
| | | } else { |
| | | FinSysTenant param = new FinSysTenant(); |
| | | param.setTempId(Long.valueOf(parentId)); |
| | | FinSysTenant result = this.finSysTenantService.get(param); |
| | | FinSysTenant result = finSysTenantService.selectById(parentId); |
| | | return ResponseValue.success(result); |
| | | } |
| | | } |