自动化立体仓库 - WMS系统
#
LSH
2023-01-30 2b12b7d324d013df11c8ed81ee61a0c5b54ca3f7
src/main/java/com/zy/common/service/CommonService.java
@@ -353,7 +353,25 @@
//            }
        }
        // 2.库位当前所属尺寸无空库位时,调整尺寸参数,向上兼容检索库位
        // 2.无库位时,无视区域锁定,重新查找库位
        if (Cools.isEmpty(locMast)){
            List<LocMast> locMasts = locMastService.queryFreeLocMastEnd(curRow);
            for (LocMast locMast1 : locMasts){
                List<LocMast> locMasts1 = locMastService.queryFreeLocMastEnd0(locMast1.getBay1(), locMast1.getLev1(),locMast1.getRow1());
                Integer innermostRow = Utils.getInnermostRow(locMasts1.get(0).getLocNo());
                for (LocMast locMast2:locMasts1){
                    if (locMast2.getRow1().equals(innermostRow)) {
                        locMast = locMast2;
                        break;
                    }
                }
                if (!Cools.isEmpty(locMast)){
                    break;
                }
            }
        }
        // 3.库位当前所属尺寸无空库位时,调整尺寸参数,向上兼容检索库位
        if (Cools.isEmpty(locMast)) {
            // 当前巷道无空库位时,递归调整至下一巷道,检索全部巷道无果后,跳出递归
            if (times < rowCount) {