From 48785fbdaed22ea2b1993ff83363b9a25cec2eeb Mon Sep 17 00:00:00 2001
From: gaofei1985 <181547018@qq.com>
Date: Thu, 2 Apr 2026 10:21:46 +0800
Subject: [PATCH] 1
---
SGGL/BLL/HSSE/SitePerson/SitePerson_PersonItemService.cs | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonItemService.cs b/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonItemService.cs
index 3a34a626..776a7f52 100644
--- a/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonItemService.cs
+++ b/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonItemService.cs
@@ -17,11 +17,6 @@ namespace BLL
set;
}
- ///
- /// 定义变量
- ///
- private static IQueryable getDataLists = from x in Funs.DB.SitePerson_PersonItem select x;
-
///
/// 获取分页列表
///
@@ -36,6 +31,8 @@ namespace BLL
///
public static IEnumerable getListData(string projectId, string unitId, string personId, string name, string idCard, DateTime? startDate, DateTime? endDate, Grid Grid1)
{
+ Model.SGGLDB db = Funs.DB;
+ var getDataLists = from x in db.SitePerson_PersonItem select x;
IQueryable getDataList = getDataLists.Where(e => e.PersonId == personId);
if (!string.IsNullOrEmpty(projectId) && projectId != Const._Null)
{