挤出批号修改 erp接口另起线程调用

This commit is contained in:
2024-09-29 16:03:05 +08:00
parent e6a0066616
commit a04831bbae
8 changed files with 76 additions and 28 deletions

View File

@@ -479,11 +479,7 @@ namespace Tnb.WarehouseMgr
BasFactoryConfig callErp = await _db.Queryable<BasFactoryConfig>().FirstAsync(x => x.enabled == 1 && x.key == FactoryConfigConst.CALLERP);
if(callErp.value=="1")
{
Thread thread = new(() =>
{
_thirdApiRecordService.Send(new List<ThirdWebapiRecord> { thirdWebapiRecord }, "自动", _db);
});
thread.Start();
_thirdApiRecordService.Send(new List<ThirdWebapiRecord> { thirdWebapiRecord }, "自动", _db);
}
}