From 6779adab6fcc8f8eb55eb4d3f86ac9247d8cb8cf Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 4 Jul 2023 17:56:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E9=99=A4warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs index 82f98de5..199c754d 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs @@ -107,7 +107,7 @@ namespace Tnb.WarehouseMgr { case EnumInOutStockType.In: var wmsInstockD = input.Adapt(); - var wmsInstockCodes = input.InstockCodes.Adapt>(); + var wmsInstockCodes = input.InstockCodes?.Adapt>(); if (wmsInstockCodes?.Count > 0) { wmsInstockCodes.ForEach(x => @@ -123,7 +123,7 @@ namespace Tnb.WarehouseMgr break; case EnumInOutStockType.Out: var wmsOutstockD = input.Adapt(); - var wmsOutstockCodes = input.InstockCodes.Adapt>(); + var wmsOutstockCodes = input.InstockCodes?.Adapt>(); if (wmsOutstockCodes?.Count > 0) { wmsOutstockCodes.ForEach(x => @@ -135,7 +135,7 @@ namespace Tnb.WarehouseMgr x.bill_d_id = wmsOutstockD.id; }); } - isOk = await _update(wmsOutstockD, wmsOutstockCodes); + isOk = await _update(wmsOutstockD, wmsOutstockCodes!); break; } if (!isOk) throw Oops.Oh(ErrorCode.COM1001); @@ -585,7 +585,7 @@ namespace Tnb.WarehouseMgr //根据所有库位更新库位的锁定状态为“锁定” if (setLocaionColumbExp != null) { - await _db.Updateable().SetColumns(setLocaionColumbExp).Where(it => input.LocationIds.Contains(it.id)).ExecuteCommandAsync(); + await _db.Updateable().SetColumns(setLocaionColumbExp).Where(it => input.LocationIds!.Contains(it.id)).ExecuteCommandAsync(); } await _db.Ado.CommitTranAsync(); }