วินัยกำหนดให้ฟิวว่างได้ รายละเอียด

This commit is contained in:
Kittapath 2024-01-11 09:25:42 +07:00
parent 2f733cd2a6
commit 4369c35f93
23 changed files with 9215 additions and 53 deletions

View file

@ -28,7 +28,8 @@ namespace BMA.EHR.Application.Repositories
public async Task NotifyDisciplineComplaint()
{
var cronjobNotis = await _dbDisContext.Set<DisciplineComplaint>()
.Where(x => x.DateNotification != null && x.DateNotification.Date == DateTime.Now.Date)
.Where(x => x.DateNotification != null)
.Where(x => x.DateNotification.Value.Date == DateTime.Now.Date)
.AsQueryable()
.ToListAsync();
foreach (var cronjobNoti in cronjobNotis)