From c3f3f2214aca596677256af0531eeba259012d14 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Wed, 31 Dec 2025 16:39:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E4=BD=8D=E4=B8=8D=E5=AD=98=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../production/service/impl/ProductionInboundServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/gaotao/modules/production/service/impl/ProductionInboundServiceImpl.java b/src/main/java/com/gaotao/modules/production/service/impl/ProductionInboundServiceImpl.java index b219c7f..c4bc921 100644 --- a/src/main/java/com/gaotao/modules/production/service/impl/ProductionInboundServiceImpl.java +++ b/src/main/java/com/gaotao/modules/production/service/impl/ProductionInboundServiceImpl.java @@ -580,6 +580,8 @@ public class ProductionInboundServiceImpl implements ProductionInboundService { Location location = locationService.getByLocationIdAndSite(dto.getSite(), dto.getLocationNo()); if (location != null) { warehouseId = location.getWarehouseId(); + } else { + throw new XJException("库位不存在: " + dto.getLocationNo()); } // 2. 生成事务号 TransNoControl transTrans = transNoService.getTransNo(dto.getSite(), "SR", 10);