Add Get Pending Job
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 2m17s

This commit is contained in:
Suphonchai Phoonsawat 2026-06-29 12:21:30 +07:00
parent a2fe424b87
commit 019a0a1be1
2 changed files with 29 additions and 0 deletions

View file

@ -63,6 +63,17 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants
return data;
}
public async Task<List<CheckInJobStatus>> GetPendingOrProcessingJobsByDateAsync(DateTime date)
{
var data = await _dbContext.Set<CheckInJobStatus>()
.Where(x => x.CreatedDate.Date == date.Date &&
(x.Status == "PENDING" || x.Status == "PROCESSING"))
.OrderByDescending(x => x.CreatedDate)
.ToListAsync();
return data;
}
/// <summary>
/// อัปเดตสถานะเป็น Processing