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