自动化立体仓库 - WMS系统
LSH
2023-08-28 3c09a80b4d01b8ea19ec48e2852ff9092d8153c4
src/main/java/com/zy/asrs/utils/Utils.java
@@ -800,10 +800,10 @@
    }
    /**
     * 检测当前库位内侧其他库位是否为D、F、X
     * 检测当前库位内侧其他库位是否为D、F、X、O
     * 返回true表示内侧库位不是DFX,返回false表示内侧库位是DFX
     */
    public static boolean checkInsideLocIsDFX2(String locNo) {
    public static boolean checkInsideLocIsDFXO(String locNo) {
        LocMastService locMastService = SpringUtils.getBean(LocMastService.class);
        List<String> insideLoc = Utils.getGroupInsideLoc(locNo);
        if (insideLoc.size() > 0) {
@@ -811,8 +811,9 @@
            for (LocMast mast : insideLocMast) {
                if (!mast.getLocSts().equals("D")
                        && !mast.getLocSts().equals("F")
                        && !mast.getLocSts().equals("O")
                        && !mast.getLocSts().equals("X")) {
                    //D、F、X(不能选定这个外侧库位)
                    //D、F、X、O(不能选定这个外侧库位)
                    return true;
                }
            }
@@ -870,4 +871,32 @@
        System.out.println(groupLoc);
    }
    public static Double getIoPri(String locNo){
        switch (Utils.getRow(locNo)){
            case 3:
            case 4:
            case 11:
            case 12:
            case 18:
            case 19:
                return 21.0;
            case 2:
            case 5:
            case 10:
            case 13:
            case 17:
            case 20:
                return 19.0;
            case 1:
            case 6:
            case 9:
            case 14:
            case 16:
            case 21:
                return 17.0;
            default:
                return 15.0;
        }
    }
}