From b30f8602f2d163a31b4411f5794ac8f6fb860b45 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期三, 31 八月 2022 11:03:12 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/utils/Utils.java |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/asrs/utils/Utils.java b/src/main/java/com/zy/asrs/utils/Utils.java
index e80f7e5..4b053cb 100644
--- a/src/main/java/com/zy/asrs/utils/Utils.java
+++ b/src/main/java/com/zy/asrs/utils/Utils.java
@@ -3,6 +3,7 @@
 import com.core.common.Arith;
 import com.core.common.Cools;
 import com.zy.common.properties.SlaveProperties;
+import com.zy.common.service.CommonService;
 
 import java.text.DecimalFormat;
 import java.util.ArrayList;
@@ -161,6 +162,37 @@
 
     }
 
+    public static Integer getGroupRow(String locNo, Boolean pakin){
+        int row = getRow(locNo);
+        if (CommonService.FIRST_GROUP_ROW_LIST.contains(row)) {
+            return pakin?17:2;
+        }
+        if (CommonService.SECOND_GROUP_ROW_LIST.contains(row)) {
+            return pakin?30:18;
+        }
+        throw new RuntimeException("搴撲綅瑙f瀽寮傚父");
+    }
+
+
+    public static List<String> getGroupLoc(String locNo){
+        int row = getRow(locNo);
+        if (CommonService.FIRST_GROUP_ROW_LIST.contains(row)) {
+            List<String> result = new ArrayList<>();
+            for (Integer row0 : CommonService.FIRST_GROUP_ROW_LIST) {
+                result.add(zerofill(String.valueOf(row0), 2) + locNo.substring(2));
+            }
+            return result;
+        }
+        if (CommonService.SECOND_GROUP_ROW_LIST.contains(row)) {
+            List<String> result = new ArrayList<>();
+            for (Integer row0 : CommonService.SECOND_GROUP_ROW_LIST) {
+                result.add(zerofill(String.valueOf(row0), 2) + locNo.substring(2));
+            }
+            return result;
+        }
+        throw new RuntimeException("搴撲綅瑙f瀽寮傚父");
+    }
+
     public static void main(String[] args) {
         SlaveProperties slaveProperties = new SlaveProperties();
         slaveProperties.setDoubleDeep(true);

--
Gitblit v1.9.1