From 80907d4bbb6fb38859dd33218beb1de9c78b9630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Fri, 27 Feb 2026 12:07:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(wcs):=20=E8=A7=A3=E5=86=B3=E6=A0=88?= =?UTF-8?q?=E6=9D=BF=E6=93=8D=E4=BD=9C=E5=89=8D=E6=9C=AA=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加栈板详情检查方法调用 - 在存在标签时抛出运行时异常提示栈板非空 - 阻止对有标签栈板进行错误操作 --- .../service/impl/WcsIntegrationServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gaotao/modules/automatedWarehouse/service/impl/WcsIntegrationServiceImpl.java b/src/main/java/com/gaotao/modules/automatedWarehouse/service/impl/WcsIntegrationServiceImpl.java index 1c4e070..c524773 100644 --- a/src/main/java/com/gaotao/modules/automatedWarehouse/service/impl/WcsIntegrationServiceImpl.java +++ b/src/main/java/com/gaotao/modules/automatedWarehouse/service/impl/WcsIntegrationServiceImpl.java @@ -2086,7 +2086,10 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { String palletId = (String) params.get("palletId"); String transportFlag = (String) params.get("transportFlag"); Integer count= (Integer) params.get("count"); - + boolean hasPalletDetail = checkPalletHasDetail(site, palletId); + if(hasPalletDetail){ + throw new RuntimeException("栈板上存在标签,不是空托盘!"); + } // 参数校验 - rqrq if (!StringUtils.hasText(site)) { throw new RuntimeException("工厂编码不能为空");