This commit is contained in:
高飞 2026-04-02 10:21:46 +08:00
parent eaa0147cb1
commit 48785fbdae
1 changed files with 2 additions and 5 deletions

View File

@ -17,11 +17,6 @@ namespace BLL
set; set;
} }
/// <summary>
/// 定义变量
/// </summary>
private static IQueryable<Model.SitePerson_PersonItem> getDataLists = from x in Funs.DB.SitePerson_PersonItem select x;
/// <summary> /// <summary>
/// 获取分页列表 /// 获取分页列表
/// </summary> /// </summary>
@ -36,6 +31,8 @@ namespace BLL
/// <returns></returns> /// <returns></returns>
public static IEnumerable getListData(string projectId, string unitId, string personId, string name, string idCard, DateTime? startDate, DateTime? endDate, Grid Grid1) 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<Model.SitePerson_PersonItem> getDataList = getDataLists.Where(e => e.PersonId == personId); IQueryable<Model.SitePerson_PersonItem> getDataList = getDataLists.Where(e => e.PersonId == personId);
if (!string.IsNullOrEmpty(projectId) && projectId != Const._Null) if (!string.IsNullOrEmpty(projectId) && projectId != Const._Null)
{ {