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);