修改马士基API订舱

master
jianghaiqing 9 months ago
parent 0e1259b01d
commit 960ccb89e1

@ -995,6 +995,8 @@ namespace Myshipping.Application.Service.BookingOrder
string ctnStat = string.Empty; string ctnStat = string.Empty;
_logger.LogInformation($"获取请求马士基API订舱报文JSON={JSON.Serialize(model)}");
if (model.ctns != null && model.ctns.Count > 0) if (model.ctns != null && model.ctns.Count > 0)
{ {
ctnStat = string.Join(",", model.ctns.GroupBy(a => a.ctnCode) ctnStat = string.Join(",", model.ctns.GroupBy(a => a.ctnCode)
@ -1005,6 +1007,7 @@ namespace Myshipping.Application.Service.BookingOrder
{ {
BookingDeliveryRecord entity = model.Adapt<BookingDeliveryRecord>(); BookingDeliveryRecord entity = model.Adapt<BookingDeliveryRecord>();
entity.Id = model.id.Value;
entity.UpdatedTime = nowDate; entity.UpdatedTime = nowDate;
entity.UpdatedUserId = UserManager.UserId; entity.UpdatedUserId = UserManager.UserId;
entity.UpdatedUserName = UserManager.Name; entity.UpdatedUserName = UserManager.Name;
@ -1040,6 +1043,7 @@ namespace Myshipping.Application.Service.BookingOrder
var ctnEntity = ctn.Adapt<BookingDeliveryRecordCtn>(); var ctnEntity = ctn.Adapt<BookingDeliveryRecordCtn>();
ctnEntity.Id = ctn.id.Value; ctnEntity.Id = ctn.id.Value;
ctnEntity.RECORD_ID = entity.Id;
ctnEntity.UpdatedTime = nowDate; ctnEntity.UpdatedTime = nowDate;
ctnEntity.UpdatedUserId = UserManager.UserId; ctnEntity.UpdatedUserId = UserManager.UserId;
ctnEntity.UpdatedUserName = UserManager.Name; ctnEntity.UpdatedUserName = UserManager.Name;

Loading…
Cancel
Save