From 696c9f6f674ea478d738cdb277c6f1c74ad637b3 Mon Sep 17 00:00:00 2001 From: TQS <56479841@qq.com> Date: 星期二, 13 八月 2024 15:21:41 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/utils/Utils.java | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 55 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 9a49a36..d16c27a 100644 --- a/src/main/java/com/zy/asrs/utils/Utils.java +++ b/src/main/java/com/zy/asrs/utils/Utils.java @@ -220,6 +220,61 @@ } /** + * 閫氳繃搴撲綅鍙疯幏鍙� 鎺� + */ + public static short getRow(Integer staNo) { + switch (staNo){ + case 108: + return 4; + case 208: + return 18; + case 112: + return 3; + case 212: + return 19; + } + throw new RuntimeException("绔欑偣瑙f瀽寮傚父"); + } + + /** + * 閫氳繃搴撲綅鍙疯幏鍙� 鍒� + */ + public static short getBay(Integer staNo) { + switch (staNo){ + case 108: + return 5; + case 208: + return 5; + case 112: + return 2; + case 212: + return 6; + } + throw new RuntimeException("绔欑偣瑙f瀽寮傚父"); + } + + /** + * 閫氳繃搴撲綅鍙疯幏鍙� 灞� + */ + public static short getLev(Integer staNo) { + return 1; + } + public static Integer getStaNoConvertCentreOther2(Integer staNo){//鏀捐揣涓鸿幏鍙栬璧扮洰鏍囦綅 + switch (staNo){ + case 108: + return 111; + case 208: + return 211; + case 112: + return 114; + case 212: + return 214; + default: + return staNo; + } + } + + /** * 閫氳繃鎺掑垪灞傛嫾鎺ュ嚭搴撲綅鍙� */ public static String append(int row, int bay, int lev) { -- Gitblit v1.9.1