修复bug
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user