20211011考勤首页去重

This commit is contained in:
2021-10-11 22:01:12 +08:00
parent f1c846da8a
commit f786812569
2 changed files with 34 additions and 14 deletions
@@ -110,10 +110,10 @@ namespace FineUIPro.Web.common
{
var unitRords = from x in getEmployInOutRecords
join y in getAllPersons on x.IDCardNo equals y.IdentityCard
where y.UnitId == unitId && y.PersonId != null
where y.UnitId == unitId && y.PersonId != null && x.UnitId== unitId
select x;
var unitPersons = getPersons.Where(x => x.UnitId == unitId);
int rcount = unitRords.Count();
int rcount = unitRords.Distinct().Count();
if (rcount > 0)
{
manCount += rcount;