From 7fe5ec905ecd59c3bf535f0ee7511d89980595df Mon Sep 17 00:00:00 2001 From: zhou keda <1315948824@qq.com> Date: Wed, 25 Sep 2024 09:47:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=90=E6=96=99=E5=87=BA=E5=BA=93=E9=A2=86?= =?UTF-8?q?=E7=94=A8=E9=83=A8=E9=97=A8=E5=AD=98id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarehouseMgr/Tnb.WarehouseMgr/ErpToWmsService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/ErpToWmsService.cs b/WarehouseMgr/Tnb.WarehouseMgr/ErpToWmsService.cs index e7953cd6..a4022061 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/ErpToWmsService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/ErpToWmsService.cs @@ -2181,6 +2181,8 @@ namespace Tnb.WarehouseMgr await db.Deleteable().Where(r => r.bill_id == wmsRawmatOutstockHRep.id).ExecuteCommandAsync(); } } + + OrganizeEntity dept = await db.Queryable().Where(x=>x.EnCode==input.dept_code).FirstAsync(); WmsRawmatOutstockH wmsRawmatOutstockH = new WmsRawmatOutstockH(); string code = await _billRuleService.GetBillNumber("rawmatoutstock"); @@ -2190,7 +2192,7 @@ namespace Tnb.WarehouseMgr wmsRawmatOutstockH.erp_bill_code = input.outstock_order; wmsRawmatOutstockH.warehouse_id = WmsWareHouseConst.WAREHOUSE_YCL_ID; //wmsRawmatOutstockH.biller = input.biller; - wmsRawmatOutstockH.department = input.dept_code; + wmsRawmatOutstockH.department = dept?.Id ?? input.dept_code; wmsRawmatOutstockH.erp_pk = input.erp_pk; wmsRawmatOutstockH.issuance_status = "0"; List wmsRawmatOutstockDs = new List();