optimize
wet 2 years ago
parent 6057b8d928
commit f5ada0149f

@ -363,6 +363,7 @@ namespace Myshipping.Application
{ {
fdentity.FORWARDERID = djycustomer.Result.Where(x => x.ShortName == fdentity.FORWARDER && x.PropString == "booking_agent").Select(x => x.CodeName).First(); fdentity.FORWARDERID = djycustomer.Result.Where(x => x.ShortName == fdentity.FORWARDER && x.PropString == "booking_agent").Select(x => x.CodeName).First();
} }
fdentity.MBLNO = entity.MBLNO;
fdentity.CreatedUserId = user.Result.Id; fdentity.CreatedUserId = user.Result.Id;
fdentity.CreatedUserName = user.Result.Name; fdentity.CreatedUserName = user.Result.Name;
fdentity.CreatedTime = DateTime.Now; fdentity.CreatedTime = DateTime.Now;
@ -651,7 +652,7 @@ namespace Myshipping.Application
{ {
throw Oops.Bah($"当前提单号{fdet.MBLNO}_{fdet.HBLNO}已存在,请勿重复录入!"); throw Oops.Bah($"当前提单号{fdet.MBLNO}_{fdet.HBLNO}已存在,请勿重复录入!");
} }
fdentity.MBLNO = entity.MBLNO;
fdentity.Id = fdmain.Id; fdentity.Id = fdmain.Id;
fdentity.UpdatedUserName = user.Result.Name; fdentity.UpdatedUserName = user.Result.Name;
fdentity.UpdatedUserId = user.Result.Id; fdentity.UpdatedUserId = user.Result.Id;
@ -1085,6 +1086,7 @@ namespace Myshipping.Application
{ {
fdentity.FORWARDERID = djycustomer.Result.Where(x => x.ShortName == fdentity.FORWARDER && x.PropString == "booking_agent").Select(x => x.CodeName).First(); fdentity.FORWARDERID = djycustomer.Result.Where(x => x.ShortName == fdentity.FORWARDER && x.PropString == "booking_agent").Select(x => x.CodeName).First();
} }
fdentity.MBLNO = entity.MBLNO;
fdentity.CreatedUserId = user.Result.Id; fdentity.CreatedUserId = user.Result.Id;
fdentity.CreatedUserName = user.Result.Name; fdentity.CreatedUserName = user.Result.Name;
fdentity.CreatedTime = DateTime.Now; fdentity.CreatedTime = DateTime.Now;
@ -1368,7 +1370,7 @@ namespace Myshipping.Application
{ {
throw Oops.Bah($"当前提单号{fdet.MBLNO}_{fdet.HBLNO}已存在,请勿重复录入!"); throw Oops.Bah($"当前提单号{fdet.MBLNO}_{fdet.HBLNO}已存在,请勿重复录入!");
} }
fdentity.MBLNO = entity.MBLNO;
fdentity.Id = fdmain.Id; fdentity.Id = fdmain.Id;
fdentity.UpdatedUserName = user.Result.Name; fdentity.UpdatedUserName = user.Result.Name;
fdentity.UpdatedUserId = user.Result.Id; fdentity.UpdatedUserId = user.Result.Id;

Loading…
Cancel
Save