แก้ defect เพิ่มเติม

This commit is contained in:
Suphonchai Phoonsawat 2024-01-05 16:46:52 +07:00
parent 7556a6c400
commit 56ef47dc2e
5 changed files with 21 additions and 2 deletions

View file

@ -119,7 +119,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests
var data = await _dbContext.Set<LeaveRequest>().AsQueryable()
.Include(x => x.Type)
.Where(x => x.LeaveStartDate.Year == year)
.Where(x => x.LeaveStatus != "REJECT" || x.LeaveStatus != "DELETE")
.Where(x => x.LeaveStatus != "REJECT" && x.LeaveStatus != "DELETE")
.ToListAsync();
return data;