修改ONE 截单

dev
jianghaiqing 1 month ago
parent 99ead8613f
commit b9d0162385

@ -1545,6 +1545,16 @@ namespace DS.WMS.Core.Op.Method
if (string.IsNullOrWhiteSpace(primaryModel.EDIATTNEMAIL)) if (string.IsNullOrWhiteSpace(primaryModel.EDIATTNEMAIL))
{ {
primaryModel.EDIATTNEMAIL = ftpSet.SendEmail; primaryModel.EDIATTNEMAIL = ftpSet.SendEmail;
if (ediRouteEnum == EDIRouteEnum.YT && string.IsNullOrWhiteSpace(primaryModel.EDIATTNEMAIL))
{
var currUser = db.Queryable<SysUser>().Where(x => x.Id == long.Parse(user.UserId)).First();
if (currUser != null && !string.IsNullOrWhiteSpace(currUser.Email))
{
primaryModel.EDIATTNEMAIL = currUser.Email;
}
}
} }
primaryModel.AMSCONSIGNEE = ediExtModel.AMSConsignee; primaryModel.AMSCONSIGNEE = ediExtModel.AMSConsignee;

Loading…
Cancel
Save