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()