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