同步金蝶,改成异步
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user