修复bug

This commit is contained in:
18942506660
2023-12-20 16:29:32 +08:00
parent dcba2aa380
commit 428257d1e7
8 changed files with 37 additions and 16 deletions

View File

@@ -196,7 +196,12 @@ namespace WMS.Web.Domain.Services
return Result.ReFailure(ResultCodes.DateWriteError);
if (entity.Type == OutStockType.Sal)
await SalOutStock(entity, loginInfo);
{
Task.Run(async () =>
{
await SalOutStock(entity, loginInfo);
}).GetAwaiter().GetResult();
}
return Result.ReSuccess();
}
@@ -210,7 +215,10 @@ namespace WMS.Web.Domain.Services
var list = await _outStockRepositories.GetEntityList(dto.Ids);
foreach (var entity in list)
{
await SalOutStock(entity, loginInfo);
Task.Run(async () =>
{
await SalOutStock(entity, loginInfo);
}).GetAwaiter().GetResult();
}
return Result.ReSuccess();
}