From 90c4606708c67a59564b460ad1b75be3053f74fc Mon Sep 17 00:00:00 2001 From: zhangxiaofeng <1939543722@qq.com> Date: Tue, 2 Jul 2024 10:44:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=88=B9=E4=BB=A3=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=BF=A1=E6=81=AF=E6=8E=A5=E5=8F=A3=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Myshipping.Core/Service/CommonDB/CommonDBService.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Myshipping.Core/Service/CommonDB/CommonDBService.cs b/Myshipping.Core/Service/CommonDB/CommonDBService.cs index ecdde014..593ff025 100644 --- a/Myshipping.Core/Service/CommonDB/CommonDBService.cs +++ b/Myshipping.Core/Service/CommonDB/CommonDBService.cs @@ -363,12 +363,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie .Where(x => x.PortLoadCode == input.PortLoadCode) .Select(x => x.ForwarderCode) .ToListAsync(); - - // 如果确实存在映射关系,再进行过滤;否则 - if (forwarderCodeList.Count > 0) - { - queryList = queryList.Where(x => forwarderCodeList.Contains(x.Code)).ToList(); - } + queryList = queryList.Where(x => forwarderCodeList.Contains(x.Code)).ToList(); } if (queryList.Count() > 20)