fix 匹配餐次问题
This commit is contained in:
@@ -39,10 +39,10 @@ public class BalanceSummaryService : IBalanceSummaryService
|
||||
return new KeyValueDto<ShiftEnumType, int>
|
||||
{
|
||||
Key = shift,
|
||||
Value = grp.Where(x => x.ShiftType == ShiftEnumType.Breakfast).DistinctBy(x => x.UserNo).Count()
|
||||
Value = grp.Where(x => x.ShiftType == shift).Select(x => x.UserNo).Distinct().Count()
|
||||
};
|
||||
}).ToList(),
|
||||
Total = grp.Where(x => x.CostDate == grp.Key).DistinctBy(x => x.UserNo).Count()
|
||||
Total = grp.Where(x => x.CostDate == grp.Key).Select(x => x.UserNo).Distinct().Count()
|
||||
};
|
||||
})
|
||||
.ToPage(request);
|
||||
|
||||
Reference in New Issue
Block a user