optimize
wet 2 years ago
parent bc41705468
commit a896e1cf16

@ -2325,8 +2325,8 @@ namespace Myshipping.Application
#region ATD #region ATD
if (item.Status == "ATD") if (item.Status == "ATD")
{ {
var o = _rep.AsQueryable().Filter(null, true).Where(x => x.Id == item.BookingId).FirstAsync().Result; var o = _rep.AsQueryable().Filter(null, true).Where(x => x.Id == item.BookingId).First();
var oldatd = o.ATD; var oldatd = o==null?null:o.ATD;
if (oldatd != item.OpTime) if (oldatd != item.OpTime)
{ {
o.ATD = item.OpTime; o.ATD = item.OpTime;

Loading…
Cancel
Save