挤出批号修改 erp接口另起线程调用
This commit is contained in:
@@ -164,4 +164,9 @@ public partial class WmsPurchaseH : BaseEntity<string>, IPurchaseAndSaleAuitEnti
|
||||
/// 制单方式(自制 同步)
|
||||
/// </summary>
|
||||
public string make_method { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// erp流水号
|
||||
/// </summary>
|
||||
public string service_num { get; set; }
|
||||
}
|
||||
|
||||
@@ -402,6 +402,7 @@ namespace Tnb.WarehouseMgr
|
||||
erpRequestData.Add("vbillcode", instock.bill_code);
|
||||
erpRequestData.Add("vtrantypecode", tranType?.EnCode ?? "");
|
||||
erpRequestData.Add("csourcebillhid", wmsPurchaseH?.erp_arriveorder_pk ?? "");
|
||||
erpRequestData.Add("vdef3", wmsPurchaseH?.service_num ?? "");
|
||||
|
||||
List<Dictionary<string, object>> erpRequestDataDetails = new List<Dictionary<string, object>>();
|
||||
foreach (WmsInstockD item in allInstockDetails)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -183,6 +183,7 @@ namespace Tnb.WarehouseMgr
|
||||
erpRequestData.Add("vbillcode", instock.bill_code);
|
||||
erpRequestData.Add("vtrantypecode", tranType?.EnCode ?? "");
|
||||
erpRequestData.Add("csourcebillhid", wmsPurchaseH?.erp_arriveorder_pk ?? "");
|
||||
erpRequestData.Add("vdef3", wmsPurchaseH?.service_num ?? "");
|
||||
|
||||
List<Dictionary<string, object>> erpRequestDataDetails = new List<Dictionary<string, object>>();
|
||||
foreach (WmsInstockD item in allInstockDetails)
|
||||
|
||||
Reference in New Issue
Block a user