同步金蝶,改成异步

This commit is contained in:
tongfei
2023-12-20 16:48:59 +08:00
parent 428257d1e7
commit 0870962bc4
6 changed files with 18 additions and 5 deletions

View File

@@ -131,7 +131,12 @@ namespace WMS.Web.Domain.Services
//同步金蝶
if (entity.Type == InstockType.Purchase)
await this.PurchaseInStock(entity, loginInfo);
{
Task.Run(async () =>
{
await this.PurchaseInStock(entity, loginInfo);
}).GetAwaiter().GetResult();
}
return Result.ReSuccess();
}