| | |
| | | * @return Role |
| | | */ |
| | | public static Role getRole(Long id) { |
| | | return CacheUtil.get(SYS_CACHE, ROLE_ID, id, () -> roleService.getById(id)); |
| | | // return CacheUtil.get(SYS_CACHE, ROLE_ID, id, () -> roleService.getById(id)); |
| | | return roleService.getById(id); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return Tenant |
| | | */ |
| | | public static Tenant getTenant(String tenantId) { |
| | | return CacheUtil.get(SYS_CACHE, TENANT_TENANT_ID, tenantId, () -> tenantService.getByTenantId(tenantId), Boolean.FALSE); |
| | | // return CacheUtil.get(SYS_CACHE, TENANT_TENANT_ID, tenantId, () -> tenantService.getByTenantId(tenantId), Boolean.FALSE); |
| | | return tenantService.getByTenantId(tenantId); |
| | | } |
| | | |
| | | /** |