优化齐套出库,更新空载具,并行处理逻辑

This commit is contained in:
alex
2023-07-24 10:03:40 +08:00
parent 5e2bfc7ad1
commit c250cf01f8
4 changed files with 25 additions and 14 deletions

View File

@@ -309,7 +309,7 @@ namespace Tnb.WarehouseMgr
var tasks = new List<Task<int>>();
foreach (var carryIt in carrys)
{
tasks.Add(_carryService.UpdateNullCarry(carryIt));
tasks.Add(_carryService.UpdateNullCarry(carryIt, carryIt => Task.Run(() => _db.CopyNew().Updateable(carryIt).ExecuteCommandAsync())));
}
var all = await Task.WhenAll(tasks);
await _db.Ado.CommitTranAsync();