自动化立体仓库 - WMS系统
zhangc
2025-03-19 7e0d9bcc6d822f3ca959823e45d574d54366689d
src/main/java/com/zy/asrs/service/impl/AgvMobileServiceImpl.java
@@ -444,7 +444,7 @@
//            return R.error("当前库位不为在库,或者空货架,不支持移库");
        // 校验楼层
        if (agvLocMast.getLocType1() != 3) { // 不为箱壳区域
        if (agvLocMast.getLocType1() != 3 && agvLocMast.getLocType1() != 6) { // 不为箱壳区域
            if (agvLocMast.getFloor() != floor) {
                throw new CoolException("当前库位不支持跨楼层转移");
            } else {
@@ -456,12 +456,16 @@
                    throw new CoolException("当前库位请选择调拨单调拨!");
                } else if ((agvLocMast.getFloor() == 2 || agvLocMast.getFloor() == 3) && (floor == 1 || floor == 4)) {
                    throw new CoolException("当前库位请选择调拨回流单回退!");
                } else if (agvLocMast.getFloor() == 1 && agvLocMast.getLev1() == 2 && floor == 4) {
                    ioType = 11;
                } else {
                    ioType = 12;
                }
            } else {
                if (agvLocMast.getFloor() == 1) {
                    if (agvLocMast.getLev1() == 1 && floor == 1) {
                        ioType = 11;
                    } else if (agvLocMast.getLev1() == 2 && floor == 4) {
                        ioType = 11;
                    } else {
                        ioType = 12;
@@ -516,7 +520,7 @@
        //货架编码
        mast.setBarcode(agvLocMast.getBarcode());
        //货架类型
        mast.setWhsType(Integer.parseInt(agvLocMast.getBarcode().substring(0,2)));
        mast.setWhsType(Integer.parseInt(agvLocMast.getBarcode().substring(0, 2)));
        mast.setAppeUser(userId);
        mast.setAppeTime(now);
@@ -864,7 +868,7 @@
        // TODO: 四期
        List<AgvWrkDetl> agvWrkDetls = agvWrkDetlService.selectList(new EntityWrapper<AgvWrkDetl>().eq("supp_code", param.getBarcode()));
        String factory = param.getFactory();
        AgvLocMast newLocMast = agvCommonService.getLocByLocRule20(3, 1, factory,false);
        AgvLocMast newLocMast = agvCommonService.getLocByLocRule20(3, 1, factory, false);
        if (newLocMast == null) {
            throw new CoolException("无可用库位");
        }