noti เครื่องราชให้ insignia1

This commit is contained in:
Kittapath 2023-09-20 18:59:25 +07:00
parent 7b49e34498
commit c0018707c7

View file

@ -911,7 +911,7 @@ namespace BMA.EHR.Application.Repositories.Reports
.ToListAsync(); .ToListAsync();
foreach (var insigniaPeriod in insigniaPeriods) foreach (var insigniaPeriod in insigniaPeriods)
{ {
if (insigniaPeriod.StartDate.AddDays(-insigniaPeriod.Amount).Date == DateTime.Now.Date) if (insigniaPeriod.EndDate.AddDays(-insigniaPeriod.Amount).Date == DateTime.Now.Date)
{ {
await _repositoryNoti.PushNotificationAsync( await _repositoryNoti.PushNotificationAsync(
Guid.Parse("08db721d-ade4-480e-8d84-0853946a0ea5"), Guid.Parse("08db721d-ade4-480e-8d84-0853946a0ea5"),
@ -920,6 +920,13 @@ namespace BMA.EHR.Application.Repositories.Reports
"", "",
true true
); );
await _repositoryNoti.PushNotificationAsync(
Guid.Parse("08db721d-adff-47b0-8762-41cd5c991001"),
$"แจ้งเตือนรอบการเสนอขอ {insigniaPeriod.Name} รอบที่{insigniaPeriod.Round}",
$"แจ้งเตือนรอบการเสนอขอ {insigniaPeriod.Name} รอบที่{insigniaPeriod.Round}",
"",
true
);
} }
} }
} }