This commit is contained in:
Suphonchai Phoonsawat 2023-11-14 10:29:07 +07:00
parent 3a20a2b5dd
commit 247071b246
2 changed files with 23 additions and 4 deletions

View file

@ -71,7 +71,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants
{
var data = await _dbContext.Set<UserTimeStamp>()
.Where(u => u.KeycloakUserId == keycloakId)
.Where(u => u.CheckIn.Year.ToCeYear() == year.ToCeYear())
.Where(u => u.CheckIn.Year == year)
.OrderBy(u => u.CheckIn)
.Skip((page - 1) * pageSize)
.Take(pageSize)