自动化立体仓库 - WMS系统
zhangc
2025-03-03 24bc9aa5888c7b98cf0a7d1bf05ec6c5624d3719
src/main/java/com/zy/asrs/task/handler/AutoMoveHandler.java
@@ -155,7 +155,8 @@
        //货架编码
        mast.setBarcode(agvLocMast.getBarcode());
        //货架类型
        mast.setWhsType(30);
        mast.setWhsType(Integer.parseInt(agvLocMast.getBarcode().substring(0,2)));
        // 目标楼层
        mast.setPauseMk(agvLocMast.getLocType3().toString());
@@ -191,10 +192,19 @@
        return SUCCESS;
    }
    private ReturnT<String> doAutoMove2(AgvWrkMast agvWrkMast) {
        Date now = new Date();
        //检索库位,选择合适的库位
        AgvLocMast locMast = agvCommonService.getLocNo(3, agvWrkMast.getCrnNo(), false, true);
        String barcode = agvWrkMast.getBarcode();
        AgvLocMast locMast;
        if (Integer.parseInt(barcode.substring(0, 2)) == 31) {
            //检索库位,选择合适的库位
            locMast = agvCommonService.getLocByLocRule(6, 2, 1);
        } else {
            //检索库位,选择合适的库位
            locMast = agvCommonService.getLocNo(3, agvWrkMast.getCrnNo(), false, true);
        }
        if (Cools.isEmpty(locMast)) {
            log.info("暂无库位");
            return FAIL;
@@ -315,7 +325,8 @@
        //货架编码
        mast.setBarcode(agvLocMast.getBarcode());
        //货架类型
        mast.setWhsType(30);
        mast.setWhsType(Integer.parseInt(agvLocMast.getBarcode().substring(0,2)));
        mast.setAppeUser(9527L);
        mast.setAppeTime(now);
@@ -452,7 +463,8 @@
        //货架编码
        mast.setBarcode(agvLocMast.getBarcode());
        //货架类型
        mast.setWhsType(30);
        mast.setWhsType(Integer.parseInt(agvLocMast.getBarcode().substring(0,2)));
        mast.setAppeUser(9527L);
        mast.setAppeTime(now);
@@ -536,7 +548,8 @@
        //货架编码
        mast.setBarcode(agvLocMast.getBarcode());
        //货架类型
        mast.setWhsType(30);
        mast.setWhsType(Integer.parseInt(agvLocMast.getBarcode().substring(0,2)));
        mast.setAppeUser(9527L);
        mast.setAppeTime(now);
@@ -577,7 +590,8 @@
        //货架编码
        mast.setBarcode(agvBasDevp.getBarcode());
        //货架类型
        mast.setWhsType(30);
        mast.setWhsType(Integer.parseInt(agvBasDevp.getBarcode().substring(0,2)));
        mast.setAppeUser(9527L);
        mast.setAppeTime(now);
        mast.setModiUser(9527L);
@@ -634,7 +648,8 @@
        //货架编码
        mast.setBarcode(agvBasDevp.getBarcode());
        //货架类型
        mast.setWhsType(30);
        mast.setWhsType(Integer.parseInt(agvBasDevp.getBarcode().substring(0,2)));
        mast.setAppeUser(9527L);
        mast.setAppeTime(now);
        mast.setModiUser(9527L);
@@ -689,7 +704,8 @@
        //货架编码
        mast.setBarcode(agvLocMast.getBarcode());
        //货架类型
        mast.setWhsType(30);
        mast.setWhsType(Integer.parseInt(agvLocMast.getBarcode().substring(0,2)));
        mast.setAppeUser(9527L);
        mast.setAppeTime(now);
@@ -771,7 +787,8 @@
        //货架编码
        mast.setBarcode(agvLocMast.getBarcode());
        //货架类型
        mast.setWhsType(30);
        mast.setWhsType(Integer.parseInt(agvLocMast.getBarcode().substring(0,2)));
        mast.setAppeUser(9527L);
        mast.setAppeTime(now);