From 5a38880a145dc41c36bbcbecd6646c8da4e06702 Mon Sep 17 00:00:00 2001 From: xiaju <1784803958@qq.com> Date: Thu, 23 Apr 2026 10:12:44 +0800 Subject: [PATCH] 1 --- SGGL/BLL/HSSE/SitePerson/SitePerson_CheckingService.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/SGGL/BLL/HSSE/SitePerson/SitePerson_CheckingService.cs b/SGGL/BLL/HSSE/SitePerson/SitePerson_CheckingService.cs index 3789dcb0..0ec84d0e 100644 --- a/SGGL/BLL/HSSE/SitePerson/SitePerson_CheckingService.cs +++ b/SGGL/BLL/HSSE/SitePerson/SitePerson_CheckingService.cs @@ -19,12 +19,6 @@ namespace BLL set; } - /// - /// 定义变量 - /// - private static IQueryable getDataLists = from x in Funs.DB.SitePerson_Checking - select x; - /// /// 数据列表 /// @@ -33,7 +27,9 @@ namespace BLL /// public static IEnumerable getListData(string projectId, string unitId, string personName, string startDate, string endDate, Grid Grid1) { - IQueryable getDataList = getDataLists.Where(x => x.ProjectId == projectId); + IQueryable getDataList = from x in Funs.DB.SitePerson_Checking + where x.ProjectId == projectId + select x; if (!string.IsNullOrEmpty(unitId) && unitId != Const._Null) { getDataList = getDataList.Where(x => x.UnitId == unitId);