This commit is contained in:
2023-07-24 14:49:45 +08:00
parent cfb16a4268
commit 3c141d8710
10 changed files with 161 additions and 122 deletions
+3 -4
View File
@@ -59,10 +59,9 @@ namespace BLL
}
if (!string.IsNullOrEmpty(projetcId) && projetcId != Const._Null)
{
getDataList = from x in getDataList
join y in db.SitePerson_PersonItem on x.PersonId equals y.PersonId
where y.ProjectId == projetcId && !y.OutTime.HasValue
select x;
var idLists=(from x in db.SitePerson_PersonItem where x.ProjectId == projetcId && !x.OutTime.HasValue
select x.PersonId).Distinct().ToList();
getDataList = getDataList.Where(x => idLists.Contains(x.PersonId));
}
if (!string.IsNullOrEmpty(personType) && personType != Const._Null)