This commit is contained in:
夏菊 2026-04-23 10:12:44 +08:00
parent 7d9f4233d1
commit 5a38880a14
1 changed files with 3 additions and 7 deletions

View File

@ -19,12 +19,6 @@ namespace BLL
set;
}
/// <summary>
/// 定义变量
/// </summary>
private static IQueryable<Model.SitePerson_Checking> getDataLists = from x in Funs.DB.SitePerson_Checking
select x;
/// <summary>
/// 数据列表
/// </summary>
@ -33,7 +27,9 @@ namespace BLL
/// <returns></returns>
public static IEnumerable getListData(string projectId, string unitId, string personName, string startDate, string endDate, Grid Grid1)
{
IQueryable<Model.SitePerson_Checking> getDataList = getDataLists.Where(x => x.ProjectId == projectId);
IQueryable<Model.SitePerson_Checking> 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);