diff --git a/Src/Dlhis.Sys/Identity/Controllers/TenantsController.cs b/Src/Dlhis.Sys/Identity/Controllers/TenantsController.cs index 4018d12d..998dcd10 100644 --- a/Src/Dlhis.Sys/Identity/Controllers/TenantsController.cs +++ b/Src/Dlhis.Sys/Identity/Controllers/TenantsController.cs @@ -37,7 +37,8 @@ public class TenantsController : ControllerBase [HttpGet("list")] public async Task> GetListAsync() { - return await _tenantService.GetListAsync(); + var tenants = await _tenantService.GetListAsync(); + return tenants.Where(x => x.Code == "2401").ToList(); } /// diff --git a/Src/Dlhis.Sys/Identity/Services/Implements/TenantService.cs b/Src/Dlhis.Sys/Identity/Services/Implements/TenantService.cs index 0716aa4b..70642c2f 100644 --- a/Src/Dlhis.Sys/Identity/Services/Implements/TenantService.cs +++ b/Src/Dlhis.Sys/Identity/Services/Implements/TenantService.cs @@ -30,10 +30,7 @@ public class TenantService : ITenantService public async Task> GetListAsync() { - //todo 临时写死 return await _dbContext.Queryable() - .Where(x => !string.IsNullOrEmpty(x.PCode)) - .Where(x => x.Code == "2401") .Select() .ToListAsync(); }