This commit is contained in:
夏菊 2025-06-09 16:20:19 +08:00
parent c30a2c9503
commit 18da306cdd
1 changed files with 2 additions and 2 deletions

View File

@ -148,14 +148,14 @@ namespace FineUIPro.Web.common
{ {
int result = (from x in Funs.DB.SitePerson_Person int result = (from x in Funs.DB.SitePerson_Person
join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId
where y.IsCQMS == true && x.IsUsed == true where y.IsCQMS == true && x.IsUsed == true && x.InTime < DateTime.Now && (x.OutTime == null || x.OutTime > DateTime.Now)
select x).Count(); select x).Count();
return result; return result;
} }
else { else {
int result = (from x in Funs.DB.SitePerson_Person int result = (from x in Funs.DB.SitePerson_Person
join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId
where y.IsCQMS == true && x.IsUsed == true && pids.Contains(x.ProjectId) where y.IsCQMS == true && x.IsUsed == true && x.InTime < DateTime.Now && (x.OutTime == null || x.OutTime > DateTime.Now) && pids.Contains(x.ProjectId)
select x).Count(); select x).Count();
return result; return result;
} }