自动化立体仓库 - WMS系统
#
zwl
2025-05-20 cb5092a38a5123bd9da452ad311b9323561802b1
src/main/java/com/zy/common/service/CommonService.java
@@ -548,6 +548,7 @@
     */
    public LocMast getLocNo2(WaitPakin waitPakin, Integer[] arr, Integer d, Integer locType, Integer locType1) {
        LocMast locMast = null;
        try {
        //一.查询入库货物是否是特殊摆放货物
        if (locType == 2) {
            //查找层标记的
@@ -639,15 +640,19 @@
            }
            //该层没有找到库位时进入递归换层找库位
            if (Cools.isEmpty(locMast)) {
                    ++d;
                if (d > 6) {
                    throw new CoolException("没有空库位");
                }
                if (d == 6 && locType == 2) {
                    return getLocNo2(waitPakin, arr, 0, 1, locType1);
                }
                return getLocNo2(waitPakin, arr, d++, locType, locType1);
                    return getLocNo2(waitPakin, arr, d, locType, locType1);
            }
        }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return locMast;
    }