#
zjj
2025-04-07 95ca12994fe6a68b46d30653123dba8d8acf20fc
src/main/java/com/zy/asrs/utils/Utils.java
@@ -88,7 +88,7 @@
    public static String getShallowLoc(SlaveProperties slaveProperties, String deepLoc) {
        int row = getRow(deepLoc);
        int remainder = (int) Arith.remainder(row, slaveProperties.getGroupCount());
        int shallowRow = remainder == 1 ? (row + 1) : (row - 1);
        int shallowRow = remainder == 1 ? (row - 1) : (row + 1);
        return zerofill(String.valueOf(shallowRow), 2) + deepLoc.substring(2);
    }
@@ -107,10 +107,10 @@
        int row = getRow(shallowLoc);
        int remainder = (int) Arith.remainder(row, slaveProperties.getGroupCount());
        int targetRow;
        if (remainder == 2) {
            targetRow = row - 1;
        } else if (remainder == 3) {
        if (remainder == 0  ) {
            targetRow = row + 1;
        } else if (remainder == 3) {
            targetRow = row - 1;
        } else {
            throw new RuntimeException(shallowLoc + "不是浅库位,系统繁忙");
        }