From b3051bb4ff57991d5958b4b68e152c4f19427122 Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Mon, 10 Apr 2023 14:10:28 +0800 Subject: [PATCH] 1 --- .../Service/DataSync/DataSyncService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Myshipping.Application/Service/DataSync/DataSyncService.cs b/Myshipping.Application/Service/DataSync/DataSyncService.cs index d9ab744c..3f58422f 100644 --- a/Myshipping.Application/Service/DataSync/DataSyncService.cs +++ b/Myshipping.Application/Service/DataSync/DataSyncService.cs @@ -943,7 +943,7 @@ namespace Myshipping.Application if (model.BookingEDIExt != null) { //检索EDI扩展 - var ediExtEntity = _bookingEDIExt.FirstOrDefault(u => u.BookingId == main.Id); + var ediExtEntity = await _bookingEDIExt.AsQueryable().Filter(null, true).Where(x => x.BookingId == main.Id).FirstAsync(); if (ediExtEntity == null) { @@ -1244,7 +1244,7 @@ namespace Myshipping.Application if (item.BookingEDIExt != null) { //检索EDI扩展 - var ediExtEntity = _bookingEDIExt.FirstOrDefault(u => u.BookingId == fdmain.Id); + var ediExtEntity = await _bookingEDIExt.AsQueryable().Filter(null, true).Where(x => x.BookingId == fdmain.Id).FirstAsync(); if (ediExtEntity == null) { @@ -1359,8 +1359,8 @@ namespace Myshipping.Application if (item.BookingEDIExt != null) { //检索EDI扩展 - var ediExtEntity = _bookingEDIExt.FirstOrDefault(u => u.BookingId == fdentity.Id); - + + var ediExtEntity = await _bookingEDIExt.AsQueryable().Filter(null, true).Where(x => x.BookingId == fdentity.Id).FirstAsync(); if (ediExtEntity == null) { //写入EDI扩展