自动化立体仓库 - WMS系统
#
whycq
2024-05-13 24c2fd8ab62fa12ae96658664e7ffd478bef6e62
src/main/java/com/zy/common/service/AgvCommonService.java
@@ -71,7 +71,7 @@
     * 检索库位号
     * @return locNo 检索到的库位号
     */
    public AgvLocMast getLocNo(int type) {
    public AgvLocMast getLocNo(int type, int floor) {
        // 目标库位
        AgvLocMast locMast = null;
//        if(Cools.isEmpty(agvWaitPakinList)){
@@ -110,7 +110,7 @@
        // 开始查找库位 ==============================>>
        locMast = getLocNoRule(type);
        locMast = getLocNoRule(type,floor);
        if (locMast != null) {
            return locMast;
        }
@@ -227,9 +227,10 @@
    }
    //随机取一个货位
    private AgvLocMast getLocNoRule(int type){
    private AgvLocMast getLocNoRule(int type,int floor){
        return agvLocMastService.selectOne(new EntityWrapper<AgvLocMast>()
                .eq("loc_sts","O")
                .eq("floor",floor)
                .eq("loc_type1",type));
    }