lsh
2024-08-09 e3b8bc50db4cf9d5fcac58b56d1cb7e25154c3a6
src/main/java/com/zy/asrs/utils/Utils.java
@@ -220,6 +220,61 @@
    }
    /**
     * 通过库位号获取 排
     */
    public static short getRow(Integer staNo) {
        switch (staNo){
            case 108:
                return 4;
            case 208:
                return 18;
            case 112:
                return 3;
            case 212:
                return 19;
        }
        throw new RuntimeException("站点解析异常");
    }
    /**
     * 通过库位号获取 列
     */
    public static short getBay(Integer staNo) {
        switch (staNo){
            case 108:
                return 5;
            case 208:
                return 5;
            case 112:
                return 2;
            case 212:
                return 6;
        }
        throw new RuntimeException("站点解析异常");
    }
    /**
     * 通过库位号获取 层
     */
    public static short getLev(Integer staNo) {
        return 1;
    }
    public static Integer getStaNoConvertCentreOther2(Integer staNo){//放货为获取行走目标位
        switch (staNo){
            case 108:
                return 111;
            case 208:
                return 211;
            case 112:
                return 114;
            case 212:
                return 214;
            default:
                return staNo;
        }
    }
    /**
     * 通过排列层拼接出库位号
     */
    public static String append(int row, int bay, int lev) {