From 9cd35d427791090f26999b1ea0b269f05165de86 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Sun, 24 Mar 2024 21:48:20 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=BB=93=E6=9E=9C=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.Sys/Identity/Controllers/TenantsController.cs | 3 ++- Src/Dlhis.Sys/Identity/Services/Implements/TenantService.cs | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) 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(); }