From c7c950bc0d0b9cd469e2cd3f3d4d3a3c4df3b3b4 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: Sun, 5 Oct 2025 13:14:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=88=E6=9D=BF=E5=87=BA=E7=AB=8B=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/WcsIntegrationServiceImpl.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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 065dd27..7e7fe42 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 @@ -975,16 +975,20 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { Integer soreType=palletInfo.getWcsSoreType(); String autoSort = palletInfo.getAutoSort(); boolean isAutoSort = "Y".equals(autoSort); + + //获取栈板里面增量数据 + List newDetail=wcsIntegrationMapper.getPalletDetailsNewDetail(site, palletId); + if(newDetail.isEmpty()){ + return; + } //组盘里面判断 结束组盘 才会修改栈板不可用标记 if("Y".equals(endFlag)) { String username = ((SysUserEntity) SecurityUtils.getSubject().getPrincipal()).getUsername(); // 更新栈板calling_flag为Y wcsIntegrationMapper.updatePalletCallingFlag(site, palletId, "Y", username); - } - //获取栈板里面增量数据 - List newDetail=wcsIntegrationMapper.getPalletDetailsNewDetail(site, palletId); - if(newDetail.isEmpty()){ - return; + }else { + //如果是分次组托 说明在分拣 需要查下是否有相关订单 + } //有常用料就有这个标记 boolean hasCommonlyUsed = newDetail.stream()