From a8b604dba89260b486244926ec5bff5a121eb71a Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期五, 17 十一月 2023 16:24:56 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/asrs/utils/Utils.java | 27 +++++++++++++++++++++++++++
1 files changed, 27 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 2fd2706..ba3cc80 100644
--- a/src/main/java/com/zy/asrs/utils/Utils.java
+++ b/src/main/java/com/zy/asrs/utils/Utils.java
@@ -148,6 +148,13 @@
throw new RuntimeException("搴撲綅瑙f瀽寮傚父");
}
+ public static Short getRowShort(String locNo) {
+ if (!Cools.isEmpty(locNo)) {
+ return Short.valueOf(locNo.substring(0, 2));
+ }
+ throw new RuntimeException("搴撲綅瑙f瀽寮傚父");
+ }
+
/**
* 閫氳繃搴撲綅鍙疯幏鍙� 鍒�
*/
@@ -169,6 +176,26 @@
}
/**
+ * 閫氳繃搴撲綅鍙疯幏鍙� 鍒�
+ */
+ public static short getBayShort(String locNo) {
+ if (!Cools.isEmpty(locNo)) {
+ return Short.parseShort(locNo.substring(2, 5));
+ }
+ throw new RuntimeException("搴撲綅瑙f瀽寮傚父");
+ }
+
+ /**
+ * 閫氳繃搴撲綅鍙疯幏鍙� 灞�
+ */
+ public static short getLevShort(String locNo) {
+ if (!Cools.isEmpty(locNo)) {
+ return Short.parseShort(locNo.substring(5, 7));
+ }
+ throw new RuntimeException("搴撲綅瑙f瀽寮傚父");
+ }
+
+ /**
* 褰撴绱㈠埌鍙屾繁搴撲綅鐨勬祬搴撲綅鏃讹紝濡傛灉娣卞簱浣嶆棤璐э紝鍒欐斁鍏ュ搴旂殑娣卞簱浣�
*/
public static void toDeepIfEmptyByShallow(String shallowLoc) {
--
Gitblit v1.9.1