diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsInStockService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsInStockService.cs index 84064d4e..80a51fb0 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsInStockService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsInStockService.cs @@ -249,11 +249,11 @@ namespace Tnb.WarehouseMgr { await _db.Ado.BeginTranAsync(); //入库申请主表 - WmsInstockH instock = input.instock; + WmsInstockH instock = input.instock.Adapt(); //入库申请物料明细表 - List instockds = input.instockds; + List instockds = input.instockds.Adapt>(); //入库申请条码明细表 - List instockcodes = input.instockcodes; + List instockcodes = input.instockcodes.Adapt>(); //如果数据不全, if ((instock?.carry_id.IsNullOrWhiteSpace() ?? true) || (instock?.location_id.IsNullOrWhiteSpace() ?? true) || instockds?.Count < 1 || instockcodes?.Count < 1) { diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsOutStockService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsOutStockService.cs index ae48c1ad..3b5969ca 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsOutStockService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsOutStockService.cs @@ -293,9 +293,9 @@ namespace Tnb.WarehouseMgr { await _db.Ado.BeginTranAsync(); //出库申请主表 - WmsOutstockH? outstock = input.outstock; + WmsOutstockH outstock = input.outstock.Adapt(); //出库申请明细表 - List? outstockDs = input.outstockDs; + List outstockDs = input.outstockDs.Adapt>(); //如果数据不全, if ((outstock?.location_id.IsNullOrWhiteSpace() ?? true) || outstockDs?.Count < 1) {