fix 时间判断

This commit is contained in:
2024-10-19 14:48:25 +08:00
parent bcd48ca35c
commit b0c97fb9bb
2 changed files with 2 additions and 2 deletions

View File

@@ -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)
{

View File

@@ -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)
{