修改项目看板在线人数

This commit is contained in:
潘鸿锋 2024-11-01 09:52:54 +08:00
parent ea734b0874
commit 625f1860ef
1 changed files with 10 additions and 2 deletions

View File

@ -140,7 +140,15 @@ namespace FineUIPro.Web.common
{
int AllCount = 0;
int MCount = 0;
var getallin = APIPageDataService.getPersonNum(ProjectId, DateTime.Now);
//修改日期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
join z in Funs.DB.Base_WorkPost on x.PostId equals z.WorkPostId
where x.ProjectId == this.CurrUser.LoginProjectId && x.RecordDate.Value == DateTime.Now.Date
select new { z.PostType };
AllCount = getallin.Count();
if (AllCount > 0)
{