From c5736834f88a5fd43abadaec50dd2b1e6dceb4ba Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 15 九月 2022 10:36:52 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/asrs/utils/Utils.java | 46 ++++++++++++++++++++++++++++++++++++++--------
1 files changed, 38 insertions(+), 8 deletions(-)
diff --git a/src/main/java/com/zy/asrs/utils/Utils.java b/src/main/java/com/zy/asrs/utils/Utils.java
index ac35d91..2fd4f42 100644
--- a/src/main/java/com/zy/asrs/utils/Utils.java
+++ b/src/main/java/com/zy/asrs/utils/Utils.java
@@ -2,6 +2,7 @@
import com.core.common.Arith;
import com.core.common.Cools;
+import com.zy.core.enums.SteABType;
import com.zy.core.properties.SlaveProperties;
import java.text.DecimalFormat;
@@ -34,6 +35,11 @@
}
return msgBuilder.toString();
}
+ }
+
+ public static Integer getGroupRow(String locNo){
+ int row = getRow(locNo);
+ return getGroupRow(row);
}
public static Integer getGroupRow(Integer row) {
@@ -70,15 +76,39 @@
}
}
-
- public static Integer getGroupRow(String locNo){
- int row = getRow(locNo);
- return getGroupRow(row);
+ public static SteABType selectAB(Integer row) {
+ switch (row) {
+ case 1:
+ case 2:
+ case 3:
+ return SteABType.B;
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ return SteABType.A;
+ case 8:
+ case 9:
+ case 10:
+ case 11:
+ return SteABType.B;
+ case 12:
+ case 13:
+ case 14:
+ return SteABType.A;
+ case 15:
+ case 16:
+ case 17:
+ case 18:
+ return SteABType.B;
+ case 19:
+ case 20:
+ case 21:
+ return SteABType.A;
+ default:
+ throw new RuntimeException("搴撲綅瑙f瀽寮傚父");
+ }
}
-
-
-
-
--
Gitblit v1.9.1