修改SI回执任务更新订舱订单功能

master
jianghaiqing 6 months ago
parent b3eef4c398
commit 971da18f57

@ -622,8 +622,11 @@ namespace Myshipping.Application
}
});
if (ctnList.Any(t => t.REMARK.IndexOf("SI Add") < 0))
ctnList.ForEach(t => { if (t.REMARK.IndexOf("SI Add") < 0) ctnList.Remove(t); });
if (ctnList.Any(t => string.IsNullOrWhiteSpace(t.REMARK) || t.REMARK.IndexOf("SI Add") < 0))
{
ctnList = ctnList.Where(t => !string.IsNullOrWhiteSpace(t.REMARK) && t.REMARK.IndexOf("SI Add") >= 0).ToList();
}
}
if(ctnList.Count > 0)
@ -1002,6 +1005,8 @@ namespace Myshipping.Application
x.IS_SET_AUTO_UPD_BOOKING,
}).ExecuteCommandAsync();
new EmailNoticeHelper().SendEmailNotice($"MBLNO={siSubmitted.MBL_NO} SI回执回写失败", $"MBLNO={siSubmitted.MBL_NO} SI回执回写失败原因{result.msg}", App.Configuration["EmailNoticeDefaultUser"].GetUserEmailList());
}
}
else

@ -666,7 +666,8 @@ namespace Myshipping.Application
{
if (ediCtnList != null && ediCtnList.Count > 0)
{
var ctnCodeInfo = ediCtnList.FirstOrDefault(x => x.Name.Equals(contaInfo.CTNALL, StringComparison.OrdinalIgnoreCase));
var ctnCodeInfo = ediCtnList.FirstOrDefault(x => !string.IsNullOrWhiteSpace(x.Name)
&& x.Name.Equals(contaInfo.CTNALL, StringComparison.OrdinalIgnoreCase));
if (ctnCodeInfo != null)
{

Loading…
Cancel
Save