自动化立体仓库 - WMS系统
#
luxiaotao1123
2022-08-31 5f3506ea2c1627f168604576634638833ab209d0
src/main/java/com/zy/asrs/utils/Utils.java
@@ -161,7 +161,7 @@
    }
    public static Integer getGroupRow(String locNo){
    public static Integer getOutermostRow(String locNo, Boolean pakin){
        int row = getRow(locNo);
        switch (row) {
            case 1:
@@ -257,7 +257,67 @@
            default:
                throw new RuntimeException("库位解析异常");
        }
    }
    public static List<Integer> getGroupLoc(Integer row){
        switch (row) {
            case 1:
            case 2:
            case 3:
                return new ArrayList<Integer>() {{
                    add(1);
                    add(2);
                    add(3);
                }};
            case 4:
            case 5:
            case 6:
            case 7:
                return new ArrayList<Integer>() {{
                    add(4);
                    add(5);
                    add(6);
                    add(7);
                }};
            case 8:
            case 9:
            case 10:
            case 11:
                return new ArrayList<Integer>() {{
                    add(8);
                    add(9);
                    add(10);
                    add(11);
                }};
            case 12:
            case 13:
            case 14:
                return new ArrayList<Integer>() {{
                    add(12);
                    add(13);
                    add(14);
                }};
            case 15:
            case 16:
            case 17:
            case 18:
                return new ArrayList<Integer>() {{
                    add(15);
                    add(16);
                    add(17);
                    add(18);
            }};
            case 19:
            case 20:
            case 21:
                return new ArrayList<Integer>() {{
                    add(19);
                    add(20);
                    add(21);
                }};
            default:
                throw new RuntimeException("库位解析异常");
        }
    }
    public static void main(String[] args) {