From 4c63e9950b3fdf6e62632ae2c2b3bbf186814ab6 Mon Sep 17 00:00:00 2001 From: Junjie <xjj@123> Date: 星期四, 05 六月 2025 11:19:30 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/utils/Utils.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/zy/asrs/utils/Utils.java b/src/main/java/com/zy/asrs/utils/Utils.java index ed947ab..b5cf43c 100644 --- a/src/main/java/com/zy/asrs/utils/Utils.java +++ b/src/main/java/com/zy/asrs/utils/Utils.java @@ -87,8 +87,8 @@ */ 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 remainder = (int) Arith.remainder(row, slaveProperties.getGroupCount()); + int shallowRow ; if(row==31){ shallowRow = row + 1; }else if(row==34){ @@ -130,11 +130,11 @@ * 鑾峰彇 娴呭簱浣嶆帓瀵瑰簲鐨勬繁搴撲綅鎺� */ public static Integer getDeepRow(SlaveProperties slaveProperties, Integer shallowRow) { - int remainder = (int) Arith.remainder(shallowRow, slaveProperties.getGroupCount()); +// int remainder = (int) Arith.remainder(shallowRow, slaveProperties.getGroupCount()); int targetRow; - if (remainder == 2) { + if (shallowRow == 32) { targetRow = shallowRow - 1; - } else if (remainder == 3) { + } else if (shallowRow == 33) { targetRow = shallowRow + 1; } else { throw new RuntimeException(shallowRow + "涓嶆槸娴呭簱浣嶆帓锛岀郴缁熺箒蹇�"); -- Gitblit v1.9.1