From 04806e6ef049cd644023731fd48202d36355375b Mon Sep 17 00:00:00 2001
From: ytfl <ytfl@qq.com>
Date: 星期六, 30 八月 2025 12:04:27 +0800
Subject: [PATCH] #自动获取电视机配置信息

---
 src/main/java/com/zy/asrs/utils/Utils.java  |   20 +++++++++++++++++++-
 src/main/resources/mapper/WrkMastMapper.xml |    2 +-
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/asrs/utils/Utils.java b/src/main/java/com/zy/asrs/utils/Utils.java
index 17910d6..dba50db 100644
--- a/src/main/java/com/zy/asrs/utils/Utils.java
+++ b/src/main/java/com/zy/asrs/utils/Utils.java
@@ -122,7 +122,25 @@
         }
         return zerofill(String.valueOf(targetRow), 2) + shallowLoc.substring(2);
     }
-
+    /**
+     * 鑾峰彇 娴呭簱浣嶅搴旂殑娣卞簱浣嶅彿,濡傛灉娌℃湁娣卞簱浣嶏紝鍒欒繑鍥炰负绌�
+     */
+    public static String getDeepLoc2(SlaveProperties slaveProperties, String shallowLoc) {
+        int row = getRow(shallowLoc);
+        boolean deepLoc = isDeepLoc(slaveProperties, row);//鍒ゆ柇鏄惁涓烘繁搴撲綅
+        if (deepLoc) {
+            return null;
+        }
+        if (row == 1 || row == 6) {
+            return null;
+        }
+        //2,8,11,15,19,23
+        if (row == 5 || row == 8 || row == 12 || row == 16 || row == 20 || row == 24) {
+            return zerofill(String.valueOf(row - 1), 2) + shallowLoc.substring(2);
+        } else {
+            return zerofill(String.valueOf(row + 1), 2) + shallowLoc.substring(2);
+        }
+    }
     /**
      * 鑾峰彇 娴呭簱浣嶆帓瀵瑰簲鐨勬繁搴撲綅鎺�
      */
diff --git a/src/main/resources/mapper/WrkMastMapper.xml b/src/main/resources/mapper/WrkMastMapper.xml
index 1e68904..06982a4 100644
--- a/src/main/resources/mapper/WrkMastMapper.xml
+++ b/src/main/resources/mapper/WrkMastMapper.xml
@@ -195,6 +195,6 @@
     </select>
 
     <select id="selectLaneWrkMastOut" resultMap="BaseResultMap">
-        select * from dbo.asr_wrk_mast where wrk_sts in (11,12,13,14) and io_type>100 order by io_pri desc,io_time,wrk_no asc
+        select * from dbo.asr_wrk_mast where wrk_sts in (11,12,13) and io_type>100 order by io_pri desc,io_time,wrk_no asc
     </select>
 </mapper>

--
Gitblit v1.9.1