自动化立体仓库 - WMS系统
#
luxiaotao1123
2023-02-14 be8651536f81e44a3d071891594c6f38c29c0cf5
src/main/java/com/zy/asrs/utils/Utils.java
@@ -189,26 +189,12 @@
    public static Integer getOutLayerRow(String locNo, Boolean pakin){
        int row = getRow(locNo);
        // 入库
        if (pakin) {
            if (CommonService.FIRST_GROUP_ROW_LIST.contains(row)) {
                return 17;
            } else if (CommonService.SECOND_GROUP_ROW_LIST.contains(row)) {
                return 18;
            } else {
                return -1;
//                throw new RuntimeException("库位解析异常");
            }
        // 出库
        if (CommonService.FIRST_GROUP_ROW_LIST.contains(row)) {
            return 4;
        } else if (CommonService.SECOND_GROUP_ROW_LIST.contains(row)) {
            return 5;
        } else {
            if (CommonService.FIRST_GROUP_ROW_LIST.contains(row)) {
                return 2;
            } else if (CommonService.SECOND_GROUP_ROW_LIST.contains(row)) {
                return 30;
            } else {
                return -1;
//                throw new RuntimeException("库位解析异常");
            }
            return -1;
        }
    }
@@ -317,7 +303,7 @@
    }
    public static void main(String[] args) {
        System.out.println(JSON.toJSONString(getGroupOutsideLoc("0500201")));
        System.out.println(JSON.toJSONString(getGroupOuterLoc("0500201")));
    }
}