#
18516761980
2022-06-02 6f1b18be4de62fb0702716f2492f84c11e88a9ff
src/main/java/com/zy/common/model/Shelves.java
@@ -109,13 +109,25 @@
        throw new CoolException("货排检索系统报错, node:" + JSON.toJSONString(nodes) + ", curRow:" + curRow);
    }
    public int start0(int curSeq){
        if (curSeq < 7) {
            return curSeq + 1;
        } else {
            return 2;
        }
    }
    public Integer get0(Integer curRow) {
        return 1;
    }
    public static void main(String[] args) throws InterruptedException {
        Shelves shelves = new Shelves(8,2);
        Shelves shelves = new Shelves(6,2);
        System.out.println(shelves.nodes.toString());
        int start = 1;
        while (true) {
            System.out.println(start);
            start = shelves.start(start);
            start = shelves.start0(start);
            Thread.sleep(500L);
        }
    }