改配更新主表货运跟踪

dev
cjy 1 month ago
parent 36cb21d24f
commit 1752f89777

@ -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)

Loading…
Cancel
Save