#
luxiaotao1123
2022-10-25 b78b9ca2ef71de6b9af4a31b45defb12304289b7
src/main/java/com/zy/asrs/utils/Utils.java
@@ -37,8 +37,15 @@
        }
    }
    public static Integer getGroupRow(String locNo){
        int row = getRow(locNo);
        return getGroupRow(row);
    }
    public static Integer getGroupRow(Integer row) {
        switch (row) {
            case 0:
                return 0;
            case 1:
            case 2:
            case 3:
@@ -72,62 +79,9 @@
    }
    public static Integer getGroupRow(String locNo){
        int row = getRow(locNo);
        return getGroupRow(row);
    }
    public static SteABType selectAB(Integer row) {
        switch (row) {
            case 1:
            case 2:
            case 3:
                return SteABType.B;
            case 4:
            case 5:
            case 6:
            case 7:
                return SteABType.A;
            case 8:
            case 9:
            case 10:
            case 11:
                return SteABType.B;
            case 12:
            case 13:
            case 14:
                return SteABType.A;
            case 15:
            case 16:
            case 17:
            case 18:
                return SteABType.B;
            case 19:
            case 20:
            case 21:
                return SteABType.A;
            default:
                throw new RuntimeException("库位解析异常");
        }
    }
    // -------------------------------------------------------------------------------------------------------------------
@@ -287,6 +241,10 @@
    }
    public static String getLocNo(Number row, Number bay, Number lev) {
        return zerofill(String.valueOf(row), 2) + zerofill(String.valueOf(bay), 3) + zerofill(String.valueOf(lev), 2);
    }
    public static void main(String[] args) {
        SlaveProperties slaveProperties = new SlaveProperties();
        slaveProperties.setDoubleDeep(true);