自动化立体仓库 - WMS系统
zhangc
2025-03-24 cfc4421af2ba05a786300e70e21c779ddbd39836
src/main/java/com/zy/asrs/service/impl/AgvWorkServiceImpl.java
@@ -227,7 +227,9 @@
            updateAgvLocMast(agvLocMastService.selectById(sourceLocNo), locSts);
            //更新目标站点状态
            //locSts = ioType == 101 ? "S" : "Q";
            updateAgvBasDevp(agvBasDevpService.selectById(targetLocNo), "S");
            AgvBasDevp agvBasDevp = agvBasDevpService.selectById(targetLocNo);
            agvBasDevp.setBarcode("");
            updateAgvBasDevp(agvBasDevp, "S");
        });
    }
@@ -1555,9 +1557,6 @@
    private void updateAgvBasDevp(AgvBasDevp agvBasDevp, String locSts) {
        if (!Cools.isEmpty(agvBasDevp)) {
            agvBasDevp.setLocSts(locSts);
            if (locSts.equals("S")) {
                agvBasDevp.setBarcode("");
            }
            agvBasDevpService.updateById(agvBasDevp);
        }
    }
@@ -1592,7 +1591,10 @@
        }
        OrderDetl orderDetl = orderDetlService.selectItem(orderNo, mat.getMatnr(), batch, csocode);
        if (orderDetl == null) {
            throw new CoolException("订单明细不存在");
            orderDetl = orderDetlService.selectItem(orderNo, mat.getMatnr(), null, csocode);
            if (orderDetl == null) {
                throw new CoolException("订单明细不存在");
            }
        }
        AgvWrkDetl wrkDetl = new AgvWrkDetl();
        wrkDetl.sync(mat);