fix:mysql时间范围问题

This commit is contained in:
xiaolipro 2024-09-12 10:32:04 +08:00
parent 21cda2ad2a
commit cb3f8b2756
2 changed files with 4 additions and 2 deletions

View File

@ -133,8 +133,8 @@ public partial class OrderService : ApplicationService, IOrderService
EndTrackCode = x.EndCode ?? GlobalConst.EmptyString,
SilenceBeforeStart = x.SilenceTime,
SilenceAfterEnd = x.StopTime,
StartTime = DateTime.MaxValue,
EndTime = DateTime.MaxValue,
StartTime = GlobalConst.MaxDateTime,
EndTime = GlobalConst.MaxDateTime,
}).ToList();
}
}

View File

@ -11,4 +11,6 @@ public partial class GlobalConst
public const float NoneTrackTimeZone = 99999;
public const string SuccessCode = "200";
public static DateTime MaxDateTime = new DateTime(2999, 1, 1, 0, 0, 0);
}