This commit is contained in:
parent
c30a2c9503
commit
18da306cdd
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue