From 1d7412ab8acedf3c48c649f1f12ab4e9a87433d0 Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Fri, 21 Apr 2023 11:52:35 +0800 Subject: [PATCH] 1 --- .../Service/BookingOrderSeaeEdi/BookingOrderSeaeEdiService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Myshipping.Application/Service/BookingOrderSeaeEdi/BookingOrderSeaeEdiService.cs b/Myshipping.Application/Service/BookingOrderSeaeEdi/BookingOrderSeaeEdiService.cs index 1acaeca2..389f6969 100644 --- a/Myshipping.Application/Service/BookingOrderSeaeEdi/BookingOrderSeaeEdiService.cs +++ b/Myshipping.Application/Service/BookingOrderSeaeEdi/BookingOrderSeaeEdiService.cs @@ -72,11 +72,11 @@ namespace Myshipping.Application public async Task> PageESeaeEdi(long bookingId) { - var entities = await _seaeedi.AsQueryable().Filter(null, true).Where(x => x.BookingId == bookingId).ToListAsync(); + var entities = await _seaeedi.AsQueryable().Filter(null, true).Where(x => x.BookingId == bookingId&&x.IsDeleted==false).ToListAsync(); var list = entities.Adapt>(); foreach (var item in list) { - var ctn = await _seaeedictn.AsQueryable().Filter(null, true).Where(x => x.PId == item.Id).ToListAsync(); + var ctn = await _seaeedictn.AsQueryable().Filter(null, true).Where(x => x.PId == item.Id && x.IsDeleted == false).ToListAsync(); item.EdiCtn = ctn.Adapt>(); } return list;