自动化立体仓库 - WMS系统
#
zyx
2024-06-05 ae7bca6082139d8f524a5aedd08e940de83356f4
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;
    }
}