转交方法优化

usertest
zhangxiaofeng 3 months ago
parent b3005d8fdf
commit ea39fc8f2b

@ -167,7 +167,8 @@ namespace DS.WMS.Core.TaskPlat.Method
await tenantDb.Ado.BeginTranAsync(); await tenantDb.Ado.BeginTranAsync();
await tenantDb.Deleteable<TaskBaseAllocation>().Where(x => x.TaskId == taskId).ExecuteCommandAsync(); var ids = await tenantDb.Queryable<TaskBaseAllocation>().Where(x => x.TaskId == taskId).Select(x => x.Id).ToListAsync();
await tenantDb.Deleteable<TaskBaseAllocation>().Where(x => ids.Contains(x.Id)).ExecuteCommandAsync();
var allocationList = userInfos.Select(x => new TaskBaseAllocation var allocationList = userInfos.Select(x => new TaskBaseAllocation
{ {

Loading…
Cancel
Save