Add Get Pending Job
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 2m17s
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 2m17s
This commit is contained in:
parent
a2fe424b87
commit
019a0a1be1
2 changed files with 29 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue