This commit is contained in:
夏菊 2025-05-28 11:21:57 +08:00
parent 35d9449265
commit f778c5df48
2 changed files with 6 additions and 5 deletions

View File

@ -52,9 +52,12 @@ namespace FineUIPro.Web
/// </summary>
private void getSitePerson()
{
//var getEmployInOutRecords = Funs.DB.T_d_EmployInOutRecord.Where(x => x.ProjectId == this.ProjectId && x.RecordDate.Value == DateTime.Now.Date).ToList();
// int AllCount = getEmployInOutRecords.Count();
var getallin = APIPageDataService.getPersonNum(ProjectId, DateTime.Now);
int AllCount = getallin.Count();
var getEmployInOutRecords = Funs.DB.T_d_EmployInOutRecord.Where(x => x.ProjectId == this.ProjectId && x.RecordDate.Value == DateTime.Now.Date).ToList();
int AllCount = getEmployInOutRecords.Count();
if (AllCount > 0)
{
////总人数

View File

@ -263,9 +263,7 @@ namespace FineUIPro.Web.common
{
int AllCount = 0;
int MCount = 0;
List<string> pids = new List<string>();
pids.Add(this.CurrUser.LoginProjectId);
var getallin = APIPageDataService.getPersonNum(pids, DateTime.Now);
var getallin = APIPageDataService.getPersonNum(ProjectId, DateTime.Now);
//int AllCount = 0;
//int MCount = 0;