optimize
wet 2 years ago
parent 5b328cf8ed
commit 73ab39e754

@ -249,7 +249,7 @@ namespace Myshipping.Application
mDATA = order.Adapt<MDATA>(); mDATA = order.Adapt<MDATA>();
var FORWARDER = mDATA.FORWARDER; var FORWARDER = mDATA.FORWARDER;
mDATA.FORWARDER = _cache.GetAllMappingForwarder().Result.Where(x => x.Code == FORWARDER && x.Module == "cangdan").Select(x => x.MapCode).FirstOrDefault() == null ? mDATA.FORWARDER = _cache.GetAllMappingForwarder().Result.Where(x => x.Code == FORWARDER && x.Module == "cangdan").Select(x => x.MapCode).FirstOrDefault() == null ?
_cache.GetAllCodeForwarder().Result.Where(x => x.Code == FORWARDER).Select(x => x.Name).FirstOrDefault() : _cache.GetAllCodeForwarder().Result.Where(x => x.Name == FORWARDER).Select(x => x.Name).FirstOrDefault() :
_cache.GetAllMappingForwarder().Result.Where(x => x.Code == FORWARDER && x.Module == "cangdan").Select(x => x.MapCode).FirstOrDefault(); _cache.GetAllMappingForwarder().Result.Where(x => x.Code == FORWARDER && x.Module == "cangdan").Select(x => x.MapCode).FirstOrDefault();
CTNDATA = ctns.Adapt<List<CTNDATAItem>>(); CTNDATA = ctns.Adapt<List<CTNDATAItem>>();
custEDIDtos.Add( custEDIDtos.Add(

Loading…
Cancel
Save