src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
@@ -1388,4 +1388,24 @@ } return plaList; } public boolean checkMaximum(String locNo, int packageNum){ Node node = nodeService.selectByUuid(locNo); Node nodeParent = nodeService.selectById(node.getParentId()); if(Cools.isEmpty(nodeParent.getMajor())){ return true; } //当前库存包数 int count = plaService.selectCount(new EntityWrapper<Pla>().eq("loc_no", locNo) .notIn("status", "全部出库")); if(nodeParent.getMajor() < count + packageNum){ return false; } return true; } }