From a4139f0c2f8fcdfe8012f0acd50a638342565ccd Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 2 Apr 2025 15:22:55 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=B1=BB=E5=9E=8B=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Common/SysData/Services/Implements/SysDataService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Src/Dlhis.Basic/Common/SysData/Services/Implements/SysDataService.cs b/Src/Dlhis.Basic/Common/SysData/Services/Implements/SysDataService.cs index 820f600d..22bd63b0 100644 --- a/Src/Dlhis.Basic/Common/SysData/Services/Implements/SysDataService.cs +++ b/Src/Dlhis.Basic/Common/SysData/Services/Implements/SysDataService.cs @@ -1,5 +1,6 @@ using System.Reflection; using Dlhis.Entity.Basic.Entity; +using Dlhis.Entity.Basic.Enums; using Dlhis.Entity.Canteen.Entities; using Dlhis.Entity.Canteen.Enums; using Kurisu.AspNetCore; @@ -44,7 +45,7 @@ public class SysDataService : ISysDataService switch (table) { case "Gainfo": - return await _dbContext.Queryable().Where(x => x.Factory == factory).Select(x => (object)x).ToListAsync(); + return await _dbContext.Queryable().Where(x => x.Type == GainfoUserTypeEnumType.Normal || x.Type == GainfoUserTypeEnumType.SecurityWhite).Where(x => x.Factory == factory).Select(x => (object)x).ToListAsync(); case "GainfoMeal": { var r = await _dbContext.Queryable()