提取场站数据,前端转大写导致的代码不匹配问题处理

optimize
wanghaomei 2 years ago
parent f09dd68daf
commit e471f5ce52

@ -48,7 +48,7 @@ namespace Myshipping.Application.Helper
}
var yardMappings = await cacheService.GetAllMappingYard();
var ym = yardMappings.FirstOrDefault(x => x.Code == yardid && x.Module == "BillTrace");
var ym = yardMappings.FirstOrDefault(x => x.Code.ToLower() == yardid.ToLower() && x.Module == "BillTrace");
if (ym == null)
{
return new KeyValuePair<bool, string>(false, $"场站代号配置未找到:{yardid}");

Loading…
Cancel
Save