From b0c97fb9bbc7e2766f1dc005afd706b7369c1d11 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Sat, 19 Oct 2024 14:48:25 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=97=B6=E9=97=B4=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.ScheduledTask/Jobs/AutoConfirmAppointmentJob.cs | 2 +- Src/Dlhis.ScheduledTask/Jobs/AutoRemoveAppointmentJob.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Dlhis.ScheduledTask/Jobs/AutoConfirmAppointmentJob.cs b/Src/Dlhis.ScheduledTask/Jobs/AutoConfirmAppointmentJob.cs index 671674c3..47fce6d1 100644 --- a/Src/Dlhis.ScheduledTask/Jobs/AutoConfirmAppointmentJob.cs +++ b/Src/Dlhis.ScheduledTask/Jobs/AutoConfirmAppointmentJob.cs @@ -68,7 +68,7 @@ public class AutoConfirmAppointmentJob : BaseJob { var now = DateTime.Now; - if (detail.IsEnterWorkplace && detail.WorkplaceEnd >= now) + if (detail.IsEnterWorkplace && now >= detail.WorkplaceStart) { foreach (var item in detail.ApplyWorkplaceAreas) { diff --git a/Src/Dlhis.ScheduledTask/Jobs/AutoRemoveAppointmentJob.cs b/Src/Dlhis.ScheduledTask/Jobs/AutoRemoveAppointmentJob.cs index 5f640525..725ce626 100644 --- a/Src/Dlhis.ScheduledTask/Jobs/AutoRemoveAppointmentJob.cs +++ b/Src/Dlhis.ScheduledTask/Jobs/AutoRemoveAppointmentJob.cs @@ -76,7 +76,7 @@ public class AutoRemoveAppointmentJob : BaseJob yield return detail.ApplyDoorArea; } - if (detail.IsEnterWorkplace && detail.WorkplaceEnd <= now) + if (detail.IsEnterWorkplace && now >= detail.WorkplaceEnd) { foreach (var item in detail.ApplyWorkplaceAreas) {