自动化立体仓库 - WMS系统
zhangc
2025-01-16 19739dde0204df7351321da036bfc790559aae31
src/main/java/com/zy/asrs/service/impl/AgvWorkServiceImpl.java
@@ -507,6 +507,9 @@
            case 30:
                br = 3;
                break;
            case 31:
                br = 6;
                break;
            case 40:
                br = 5;
                break;
@@ -525,6 +528,8 @@
            locType = 2;
        } else if (containerType == 30) {
            locType = 3;
        } else if (containerType == 31) {
            locType = 6;
        } else {
            locType = agvBasDevp.getLocType1();
        }
@@ -623,6 +628,9 @@
        // 站点检测
        AgvBasDevp agvBasDevp = agvBasDevpService.selectById(station);
        if (Cools.isEmpty(agvBasDevp)) {
            throw new CoolException("站点信息不存在");
        }
        if (!agvBasDevp.getLocSts().equals("O")) {
            throw new CoolException("当前工作位状态为" + agvBasDevp.getLocSts() + ",无法进行空板出库");
        }
@@ -1242,6 +1250,9 @@
            throw new CoolException(matnr + "商品维护失败");
        }
        OrderDetl orderDetl = orderDetlService.selectItem(orderNo, mat.getMatnr(), batch, csocode);
        if (orderDetl == null) {
            throw new CoolException("订单明细不存在");
        }
        AgvWrkDetl wrkDetl = new AgvWrkDetl();
        wrkDetl.sync(mat);
        if (orderDetl != null) {
@@ -1324,6 +1335,10 @@
        wrkMast.setAppeTime(now);
        wrkMast.setModiUser(userId);
        wrkMast.setModiTime(now);
        if (!Cools.isEmpty(locNo) && Cools.isEmpty(pltType)) {
            AgvLocMast agvLocMast = agvLocMastService.selectById(locNo);
            pltType = agvLocMast.getPltType();
        }
        wrkMast.setPltType(pltType);
        wrkMast.setLogErrMemo("createWaitPainWrkMastStart");