#
lsh
2024-04-05 db093d853136fa7809eb1c5e512656bfb8980d15
src/main/java/com/zy/asrs/utils/RouteUtils.java
@@ -422,23 +422,8 @@
        int ic = TRACK_POSITION_POSITIVE_SEQUENCE.indexOf(c);
        int id = TRACK_POSITION_POSITIVE_SEQUENCE.indexOf(d);
        if (id==0){
            if (ia>ib){
                if (ia>ic){
                    return a;
                }else {
                    return c;
                }
            }else {
                if (ib>ic){
                    return b;
                }else {
                    return c;
                }
            }
        }else {
            if (ia<ib){
                if (ia<ic){
                    return a;
                }else {
                    return c;
                }
@@ -449,7 +434,35 @@
                    return c;
                }
            }
        }
//        if (id==0){
//            if (ia>ib){
//                if (ia>ic){
//                    return a;
//                }else {
//                    return c;
//                }
//            }else {
//                if (ib>ic){
//                    return b;
//                }else {
//                    return c;
//                }
//            }
//        }else {
//            if (ia<ib){
//                if (ia<ic){
//                    return a;
//                }else {
//                    return c;
//                }
//            }else {
//                if (ib<ic){
//                    return b;
//                }else {
//                    return c;
//                }
//            }
//        }
    }
    /*