From 5c601865f296c96c5be6566dfb6a0220e30ca984 Mon Sep 17 00:00:00 2001 From: majian <780924089@qq.com> Date: Sun, 4 Aug 2024 00:18:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarehouseMgr/Tnb.WarehouseMgr/WmsPDAScanInStockService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsPDAScanInStockService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsPDAScanInStockService.cs index dd690e25..a9d141d3 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsPDAScanInStockService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsPDAScanInStockService.cs @@ -520,6 +520,10 @@ namespace Tnb.WarehouseMgr ePoint = await _dbScanInStockByRedis.Queryable().FirstAsync(it => it.location_id == endLocations[0].id); } + else + { + throw new AppFriendlyException("没有可以入库的库位", 500); + } sPoint = await _dbScanInStockByRedis.Queryable().FirstAsync(it => it.location_id == loc.id); Logger.LogInformation($"【ScanInStockByRedis】sPoint:{JsonConvert.SerializeObject(sPoint)} ePoint:{JsonConvert.SerializeObject(ePoint)}");