From 5f3506ea2c1627f168604576634638833ab209d0 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@63.com> Date: 星期三, 31 八月 2022 16:04:42 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/utils/Utils.java | 63 +++++++++++++++++++++++++++++++ 1 files changed, 62 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/asrs/utils/Utils.java b/src/main/java/com/zy/asrs/utils/Utils.java index 1fc7f04..67f9ef3 100644 --- a/src/main/java/com/zy/asrs/utils/Utils.java +++ b/src/main/java/com/zy/asrs/utils/Utils.java @@ -161,7 +161,7 @@ } - public static Integer getGroupRow(String locNo, Boolean pakin){ + public static Integer getOutermostRow(String locNo, Boolean pakin){ int row = getRow(locNo); switch (row) { case 1: @@ -259,6 +259,67 @@ } } + public static List<Integer> getGroupLoc(Integer row){ + switch (row) { + case 1: + case 2: + case 3: + return new ArrayList<Integer>() {{ + add(1); + add(2); + add(3); + }}; + case 4: + case 5: + case 6: + case 7: + return new ArrayList<Integer>() {{ + add(4); + add(5); + add(6); + add(7); + }}; + case 8: + case 9: + case 10: + case 11: + return new ArrayList<Integer>() {{ + add(8); + add(9); + add(10); + add(11); + }}; + case 12: + case 13: + case 14: + return new ArrayList<Integer>() {{ + add(12); + add(13); + add(14); + }}; + case 15: + case 16: + case 17: + case 18: + return new ArrayList<Integer>() {{ + add(15); + add(16); + add(17); + add(18); + }}; + case 19: + case 20: + case 21: + return new ArrayList<Integer>() {{ + add(19); + add(20); + add(21); + }}; + default: + throw new RuntimeException("搴撲綅瑙f瀽寮傚父"); + } + } + public static void main(String[] args) { SlaveProperties slaveProperties = new SlaveProperties(); slaveProperties.setDoubleDeep(true); -- Gitblit v1.9.1