|
|
|
@ -366,6 +366,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
if (config.IsNotNull() && config.Value == "YES")
|
|
|
|
|
{
|
|
|
|
|
var order = await tenantDb.Queryable<SeaExport>().Where(x => x.Id == businessId && x.MBLNO == item.MBLNO).FirstAsync();
|
|
|
|
|
var oldOrder = order.Adapt<SeaExport>();
|
|
|
|
|
if (item.Status == "ATD")
|
|
|
|
|
{
|
|
|
|
|
//2023-8-31,排查单号为177GZHZHQ5711V的数据,原来录入的船已开船,运踪港前不再查询,而因订阅港后数据会继续回推数据,所以导致ATD被改
|
|
|
|
@ -377,12 +378,20 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
if (order != null && item.OpTime != null && order.ATD != item.OpTime)
|
|
|
|
|
{
|
|
|
|
|
order.ATD = item.OpTime;
|
|
|
|
|
order.Note = "运踪回调更新ATD";
|
|
|
|
|
//order.Note = "运踪回调更新ATD";
|
|
|
|
|
await tenantDb.Updateable(order).UpdateColumns(x => new
|
|
|
|
|
{
|
|
|
|
|
x.ATD,
|
|
|
|
|
x.Note
|
|
|
|
|
x.ATD
|
|
|
|
|
}).EnableDiffLogEvent().ExecuteCommandAsync();
|
|
|
|
|
// 记录日志
|
|
|
|
|
await seaComService.SaveSeaExportLogAsync(new SeaExportSaveLog()
|
|
|
|
|
{
|
|
|
|
|
OperateType = "Update",
|
|
|
|
|
OldOrder = oldOrder,
|
|
|
|
|
NewOrder = order,
|
|
|
|
|
SourceCode = "TraceUpdteATD",
|
|
|
|
|
SourceName = "运踪回调更新ATD",
|
|
|
|
|
}, tenantDb);
|
|
|
|
|
//sendDsList.Add(item.BookingId);
|
|
|
|
|
//await _bookingorderservice.SaveLog(newOrder, oldOrder, "运踪更新船期");
|
|
|
|
|
}
|
|
|
|
@ -416,11 +425,20 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
if (order != null && item.OpTime != null && order.YgtETD != item.OpTime)
|
|
|
|
|
{
|
|
|
|
|
order.YgtETD = item.OpTime;
|
|
|
|
|
order.Note = "运踪回调更新YgtETD";
|
|
|
|
|
//order.Note = "运踪回调更新YgtETD";
|
|
|
|
|
await tenantDb.Updateable(order).UpdateColumns(x => new
|
|
|
|
|
{
|
|
|
|
|
x.YgtETD,x.Note
|
|
|
|
|
}).EnableDiffLogEvent().ExecuteCommandAsync();
|
|
|
|
|
// 记录日志
|
|
|
|
|
await seaComService.SaveSeaExportLogAsync(new SeaExportSaveLog()
|
|
|
|
|
{
|
|
|
|
|
OperateType = "Update",
|
|
|
|
|
OldOrder = oldOrder,
|
|
|
|
|
NewOrder = order,
|
|
|
|
|
SourceCode = "TraceUpdteYgtETD",
|
|
|
|
|
SourceName = "运踪回调更新YgtETD",
|
|
|
|
|
}, tenantDb);
|
|
|
|
|
//await _bookingorderservice.SaveLog(newOrder, oldOrder, "运踪更新船期");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -429,11 +447,20 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
if (order != null && item.OpTime != null && order.StartATA != item.OpTime)
|
|
|
|
|
{
|
|
|
|
|
order.StartATA = item.OpTime;
|
|
|
|
|
order.Note = "运踪回调更新StartATA";
|
|
|
|
|
//order.Note = "运踪回调更新StartATA";
|
|
|
|
|
await tenantDb.Updateable(order).UpdateColumns(x => new
|
|
|
|
|
{
|
|
|
|
|
x.StartATA, x.Note
|
|
|
|
|
x.StartATA
|
|
|
|
|
}).EnableDiffLogEvent().ExecuteCommandAsync();
|
|
|
|
|
// 记录日志
|
|
|
|
|
await seaComService.SaveSeaExportLogAsync(new SeaExportSaveLog()
|
|
|
|
|
{
|
|
|
|
|
OperateType = "Update",
|
|
|
|
|
OldOrder = oldOrder,
|
|
|
|
|
NewOrder = order,
|
|
|
|
|
SourceCode = "TraceUpdteStartATA",
|
|
|
|
|
SourceName = "运踪回调更新StartATA",
|
|
|
|
|
}, tenantDb);
|
|
|
|
|
//await _bookingorderservice.SaveLog(newOrder, oldOrder, "运踪更新船期");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -442,11 +469,20 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
if (order != null && item.OpTime != null && order.StartETA != item.OpTime)
|
|
|
|
|
{
|
|
|
|
|
order.StartETA = item.OpTime;
|
|
|
|
|
order.Note = "运踪回调更新StartETA";
|
|
|
|
|
//order.Note = "运踪回调更新StartETA";
|
|
|
|
|
await tenantDb.Updateable(order).UpdateColumns(x => new
|
|
|
|
|
{
|
|
|
|
|
x.StartETA,x.Note
|
|
|
|
|
x.StartETA
|
|
|
|
|
}).EnableDiffLogEvent().ExecuteCommandAsync();
|
|
|
|
|
// 记录日志
|
|
|
|
|
await seaComService.SaveSeaExportLogAsync(new SeaExportSaveLog()
|
|
|
|
|
{
|
|
|
|
|
OperateType = "Update",
|
|
|
|
|
OldOrder = oldOrder,
|
|
|
|
|
NewOrder = order,
|
|
|
|
|
SourceCode = "TraceUpdteStartETA",
|
|
|
|
|
SourceName = "运踪回调更新StartETA",
|
|
|
|
|
}, tenantDb);
|
|
|
|
|
//await _bookingorderservice.SaveLog(newOrder, oldOrder, "运踪更新船期");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -455,11 +491,20 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
if (order != null && item.OpTime != null && order.ETA != item.OpTime)
|
|
|
|
|
{
|
|
|
|
|
order.ETA = item.OpTime;
|
|
|
|
|
order.Note = "运踪回调更新ETA";
|
|
|
|
|
//order.Note = "运踪回调更新ETA";
|
|
|
|
|
await tenantDb.Updateable(order).UpdateColumns(x => new
|
|
|
|
|
{
|
|
|
|
|
x.ETA,x.Note
|
|
|
|
|
x.ETA
|
|
|
|
|
}).EnableDiffLogEvent().ExecuteCommandAsync();
|
|
|
|
|
// 记录日志
|
|
|
|
|
await seaComService.SaveSeaExportLogAsync(new SeaExportSaveLog()
|
|
|
|
|
{
|
|
|
|
|
OperateType = "Update",
|
|
|
|
|
OldOrder = oldOrder,
|
|
|
|
|
NewOrder = order,
|
|
|
|
|
SourceCode = "TraceUpdteMDGETA",
|
|
|
|
|
SourceName = "运踪回调更新ETA",
|
|
|
|
|
}, tenantDb);
|
|
|
|
|
//await _bookingorderservice.SaveLog(newOrder, oldOrder, "运踪更新船期");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -467,13 +512,22 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
else if (item.Status == "MDGATA")
|
|
|
|
|
{
|
|
|
|
|
if (order != null && item.OpTime != null && order.ATA != item.OpTime)
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
order.ATA = item.OpTime;
|
|
|
|
|
order.Note = "运踪回调更新ATA";
|
|
|
|
|
//order.Note = "运踪回调更新ATA";
|
|
|
|
|
await tenantDb.Updateable(order).UpdateColumns(x => new
|
|
|
|
|
{
|
|
|
|
|
x.ATA,x.Note
|
|
|
|
|
x.ATA
|
|
|
|
|
}).EnableDiffLogEvent().ExecuteCommandAsync();
|
|
|
|
|
// 记录日志
|
|
|
|
|
await seaComService.SaveSeaExportLogAsync(new SeaExportSaveLog()
|
|
|
|
|
{
|
|
|
|
|
OperateType = "Update",
|
|
|
|
|
OldOrder = oldOrder,
|
|
|
|
|
NewOrder = order,
|
|
|
|
|
SourceCode = "TraceUpdteMDGATA",
|
|
|
|
|
SourceName = "运踪更新船期ATA",
|
|
|
|
|
}, tenantDb);
|
|
|
|
|
//await _bookingorderservice.SaveLog(newOrder, oldOrder, "运踪更新船期");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|