From a896e1cf1638bcf0d6218ce23209a81778fec040 Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Fri, 2 Jun 2023 16:04:08 +0800 Subject: [PATCH] 1 --- .../Service/BookingOrder/BookingOrderService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index eb9eec28..650908d7 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -2325,8 +2325,8 @@ namespace Myshipping.Application #region ATD if (item.Status == "ATD") { - var o = _rep.AsQueryable().Filter(null, true).Where(x => x.Id == item.BookingId).FirstAsync().Result; - var oldatd = o.ATD; + var o = _rep.AsQueryable().Filter(null, true).Where(x => x.Id == item.BookingId).First(); + var oldatd = o==null?null:o.ATD; if (oldatd != item.OpTime) { o.ATD = item.OpTime;