เช็ควันที่ยกเลิกขอลาออก

This commit is contained in:
Kittapath 2024-07-30 14:02:02 +07:00
parent 35c9d32f8b
commit 36541f075a

View file

@ -2751,7 +2751,7 @@ namespace BMA.EHR.Application.Repositories.Commands
// 2. Query
var appointPeople = await _dbContext.Set<RetirementResign>()
.Where(x => !otherCommandReceivers.Contains(x.citizenId))
.Where(x => x.Status.Trim().ToUpper() == "DONE" || x.Status.Trim().ToUpper() == "DONECANCEL")
.Where(x => (x.Status.Trim().ToUpper() == "DONE" && x.ActiveDate > DateTime.Now.AddDays(1)) || x.Status.Trim().ToUpper() == "DONECANCEL")
.OrderBy(x => x.citizenId)
.ToListAsync();