From 1a199a483f6072d83880149cbbaac90d4d9a2b74 Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Fri, 5 May 2023 16:47:55 +0800 Subject: [PATCH] 1 --- Myshipping.Core/Service/CommonDB/CommonDBService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Myshipping.Core/Service/CommonDB/CommonDBService.cs b/Myshipping.Core/Service/CommonDB/CommonDBService.cs index 8559c31a..bd6e3a62 100644 --- a/Myshipping.Core/Service/CommonDB/CommonDBService.cs +++ b/Myshipping.Core/Service/CommonDB/CommonDBService.cs @@ -1584,7 +1584,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie List list = await _sysCacheService.GetAllCodeCountry(); var queryList = list - .WhereIF(!string.IsNullOrEmpty(input.Name),x=>x.Code==input.Name) + .WhereIF(!string.IsNullOrEmpty(input.Name),x=>x.Code.ToUpper()==input.Name.ToUpper()) .WhereIF(!string.IsNullOrEmpty(input.KeyWord), x => (!string.IsNullOrWhiteSpace(x.Code) && x.Code.Contains(input.KeyWord, System.StringComparison.CurrentCultureIgnoreCase)) || (!string.IsNullOrWhiteSpace(x.EnName) && x.EnName.Contains(input.KeyWord, System.StringComparison.CurrentCultureIgnoreCase))