From 59fd30a3bb9eb0ff71344059320cdf082a9d9758 Mon Sep 17 00:00:00 2001 From: zhangxiaofeng Date: Fri, 17 Nov 2023 14:15:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=B8=AA=E6=95=B0=E6=8D=AE=E6=8E=A5?= =?UTF-8?q?=E6=94=B6=E9=80=BB=E8=BE=91=E8=B0=83=E6=95=B4=EF=BC=9A=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=9F=90=E5=8D=95=E7=9A=84=E7=9B=AE=E7=9A=84=E6=B8=AF?= =?UTF-8?q?eta=E6=97=B6=EF=BC=8C=E4=B8=8D=E5=86=8D=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=90=8C=E8=88=B9=E5=90=8D=E3=80=81=E5=90=8C=E8=88=AA=E6=AC=A1?= =?UTF-8?q?=E3=80=81=E5=90=8C=E8=88=B9=E5=85=AC=E5=8F=B8=E7=9A=84eta?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/DataSync/DataSyncService.cs | 34 +++++++++---------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/Myshipping.Application/Service/DataSync/DataSyncService.cs b/Myshipping.Application/Service/DataSync/DataSyncService.cs index f96c6e12..17ce6cf7 100644 --- a/Myshipping.Application/Service/DataSync/DataSyncService.cs +++ b/Myshipping.Application/Service/DataSync/DataSyncService.cs @@ -2456,24 +2456,22 @@ namespace Myshipping.Application } - if (!string.IsNullOrEmpty(o.VESSEL) && !string.IsNullOrEmpty(o.VOYNO) && !string.IsNullOrEmpty(o.CARRIERID)) - { - var order = await _rep.AsQueryable().Filter(null, true).Where(x => x.VOYNO == o.VOYNO && x.VESSEL == o.VESSEL && x.CARRIERID == o.CARRIERID && x.TenantId == o.TenantId && x.IsDeleted == false && x.Id != item.BookingId).ToListAsync(); - - foreach (var it in order) - { - var _oldorder = it; - var _oldatd = it.ATA; - if (_oldatd != item.OpTime) - { - it.ATA = item.OpTime; - await _rep.UpdateAsync(it); - - await _bookingorderservice.SendBookingOrder(new long[] { it.Id }); - await _bookingorderservice.SaveLog(it, _oldorder); - } - } - } + //if (!string.IsNullOrEmpty(o.VESSEL) && !string.IsNullOrEmpty(o.VOYNO) && !string.IsNullOrEmpty(o.CARRIERID)) + //{ + // var order = await _rep.AsQueryable().Filter(null, true).Where(x => x.VOYNO == o.VOYNO && x.VESSEL == o.VESSEL && x.CARRIERID == o.CARRIERID && x.TenantId == o.TenantId && x.IsDeleted == false && x.Id != item.BookingId).ToListAsync(); + // foreach (var it in order) + // { + // var _oldorder = it; + // var _oldatd = it.ATA; + // if (_oldatd != item.OpTime) + // { + // it.ATA = item.OpTime; + // await _rep.UpdateAsync(it); + // await _bookingorderservice.SendBookingOrder(new long[] { it.Id }); + // await _bookingorderservice.SaveLog(it, _oldorder); + // } + // } + //} } #endregion