20211011考勤首页去重
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user