自动化立体仓库 - WMS系统
#
whycq
2024-06-26 a688149a4196f05f19d0b9aa7a084217fb89ef4c
src/main/java/com/zy/common/service/AgvCommonService.java
@@ -238,7 +238,10 @@
        Boolean orderBy = false;
        int levCount = 0;
        int times = 1;
        if (floor == 1) {
        if (floor == 1 || floor >= 4) {
            if (floor >= 4 ) {
                floor = 1;
            }
            orderBy = true;
            levCount = 2;
        } else {
@@ -253,7 +256,11 @@
            if (isEmpty) {
                wrapper.eq("floor", floor).eq("lev1",1);
            } else {
                wrapper.eq("floor", floor).orderBy("lev1",!orderBy);
                if (isCurrLev) {
                    wrapper.eq("floor", floor).eq("lev1",1);
                } else {
                    wrapper.eq("floor", floor).orderBy("lev1",!orderBy);
                }
            }