20231115人员信息与体检关联关联

This commit is contained in:
2023-11-15 16:11:07 +08:00
parent 46752f3351
commit 11e8156f65
10 changed files with 308 additions and 483 deletions
+12 -8
View File
@@ -1,6 +1,7 @@
namespace BLL
{
using Model;
using NPOI.Util;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -361,17 +362,20 @@
group x by x.ProjectId into g
select new { g.First().ProjectId, count = g.Count() }).Distinct();
List<Model.Base_Project> getList = new List<Base_Project>();
if (getProjects.Count() > 0)
{
getList = (from x in getProjects
join y in pcount on x.ProjectId equals y.ProjectId into PP
from p in PP.DefaultIfEmpty()
orderby p.count descending
select x).ToList();
var getList = (from x in getProjects
join y in pcount on x.ProjectId equals y.ProjectId into PP
from p in PP.DefaultIfEmpty()
orderby p.count descending
select x);
return getList.ToList();
}
return getList;
else
{
return null;
}
}
}