|
|
|
@ -298,6 +298,16 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
if (list.Count > 0)
|
|
|
|
|
await tenantDb.Insertable(list).ExecuteCommandAsync();
|
|
|
|
|
}
|
|
|
|
|
//更新主表货运跟踪
|
|
|
|
|
var statusLogs = await tenantDb.Queryable<BookingStatusLog>().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<BusinessTask>().Where(x => x.BusinessId == req.Id).ToListAsync();
|
|
|
|
|
if (taskList.IsNotNull() && taskList.Count > 0)
|
|
|
|
|