diff --git a/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportRefundService.cs b/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportRefundService.cs index 0a9930c4..c6de8366 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportRefundService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportRefundService.cs @@ -298,6 +298,16 @@ namespace DS.WMS.Core.Op.Method if (list.Count > 0) await tenantDb.Insertable(list).ExecuteCommandAsync(); } + //更新主表货运跟踪 + var statusLogs = await tenantDb.Queryable().Where(x => x.BusinessId == req.Id).ToListAsync(); + if (statusLogs.IsNotNull() && statusLogs.Count > 0) + { + foreach (var item in statusLogs) + { + item.BusinessId = newKey; + } + await tenantDb.Updateable(statusLogs).ExecuteCommandAsync(); + } //任务交互表 var taskList = await tenantDb.Queryable().Where(x => x.BusinessId == req.Id).ToListAsync(); if (taskList.IsNotNull() && taskList.Count > 0)