看板现场人数汇总优化
This commit is contained in:
parent
b785ed0e86
commit
e87f7f97ca
|
@ -254,14 +254,11 @@ namespace FineUIPro.Web.common
|
||||||
{
|
{
|
||||||
int AllCount = 0;
|
int AllCount = 0;
|
||||||
int MCount = 0;
|
int MCount = 0;
|
||||||
//修改日期2024-10-30 16:53:50 为了和另一个看板相同
|
|
||||||
//Funs.DB.T_d_EmployInOutRecord.Where(x => x.ProjectId == this.CurrUser.LoginProjectId && x.RecordDate.Value == DateTime.Now.Date)
|
|
||||||
//var getallin = APIPageDataService.getPersonNum(ProjectId, DateTime.Now);
|
|
||||||
|
|
||||||
var getallin = from x in Funs.DB.T_d_EmployInOutRecord
|
var getallin = from x in Funs.DB.T_d_EmployInOutRecord
|
||||||
join z in Funs.DB.Base_WorkPost on x.PostId equals z.WorkPostId
|
join z in Funs.DB.Base_WorkPost on x.PostId equals z.WorkPostId into zGroup
|
||||||
|
from z in zGroup.DefaultIfEmpty()
|
||||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.RecordDate.Value == DateTime.Now.Date
|
where x.ProjectId == this.CurrUser.LoginProjectId && x.RecordDate.Value == DateTime.Now.Date
|
||||||
select new { z.PostType };
|
select new {x.IDCardNo, z.PostType };
|
||||||
|
|
||||||
AllCount = getallin.Count();
|
AllCount = getallin.Count();
|
||||||
if (AllCount > 0)
|
if (AllCount > 0)
|
||||||
|
|
Loading…
Reference in New Issue