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)}");