From 1815bcadb613f8951c02031176d2b54dcfa5a393 Mon Sep 17 00:00:00 2001
From: chen.llin <1442464845@qq.comm>
Date: 星期六, 17 一月 2026 11:09:57 +0800
Subject: [PATCH] agv出入库根据pda扫描库位识别入库站点

---
 src/main/java/com/zy/common/properties/AgvProperties.java |   68 ++++++++++++++++++++++++++++++++++
 1 files changed, 68 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/common/properties/AgvProperties.java b/src/main/java/com/zy/common/properties/AgvProperties.java
index c8119c8..49d2e30 100644
--- a/src/main/java/com/zy/common/properties/AgvProperties.java
+++ b/src/main/java/com/zy/common/properties/AgvProperties.java
@@ -39,6 +39,16 @@
     private WhsTypeMapping whsTypeMapping = new WhsTypeMapping();
 
     /**
+     * 绔欑偣鍒嗛厤绛栫暐閰嶇疆
+     */
+    private SiteAllocationStrategy siteAllocation = new SiteAllocationStrategy();
+
+    /**
+     * 搴撲綅鍓嶇紑閰嶇疆
+     */
+    private LocationPrefix locationPrefix = new LocationPrefix();
+
+    /**
      * whs_type鏄犲皠閰嶇疆鍐呴儴绫�
      */
     @Data
@@ -68,6 +78,11 @@
          * 绔欑偣鍒楄〃
          */
         private List<String> stations = new ArrayList<>();
+
+        /**
+         * 渚ц竟鏄剧ず鍚嶇О锛堢敤浜庢棩蹇楀拰鎻愮ず淇℃伅锛屽"涓滀晶"銆�"瑗夸晶"锛�
+         */
+        private String displayName = "";
     }
 
     /**
@@ -99,4 +114,57 @@
         return west != null && west.getRobotGroup() != null && !west.getRobotGroup().isEmpty() 
             ? west.getRobotGroup() : "Group-002";
     }
+
+    /**
+     * 鑾峰彇涓滀晶鏄剧ず鍚嶇О
+     */
+    public String getEastDisplayName() {
+        return east != null && east.getDisplayName() != null && !east.getDisplayName().isEmpty()
+            ? east.getDisplayName() : "涓滀晶";
+    }
+
+    /**
+     * 鑾峰彇瑗夸晶鏄剧ず鍚嶇О
+     */
+    public String getWestDisplayName() {
+        return west != null && west.getDisplayName() != null && !west.getDisplayName().isEmpty()
+            ? west.getDisplayName() : "瑗夸晶";
+    }
+
+    /**
+     * 绔欑偣鍒嗛厤绛栫暐閰嶇疆鍐呴儴绫�
+     */
+    @Data
+    public static class SiteAllocationStrategy {
+        /**
+         * 鍒嗛厤绛栫暐绫诲瀷
+         * round-robin: 杞鍒嗛厤锛堝钩鍧囧垎閰嶏級
+         * least-task: 鏈�灏戜换鍔′紭鍏堬紙榛樿锛�
+         * random: 闅忔満鍒嗛厤
+         */
+        private String strategy = "least-task";
+
+        /**
+         * 鏄惁鍚敤骞冲潎鍒嗛厤
+         * true: 褰撳涓珯鐐逛换鍔℃暟鐩稿悓鏃讹紝浣跨敤杞鍒嗛厤
+         * false: 鎬绘槸閫夋嫨绗竴涓紙浠诲姟鏈�灏戠殑锛�
+         */
+        private boolean enableRoundRobin = true;
+    }
+
+    /**
+     * 搴撲綅鍓嶇紑閰嶇疆鍐呴儴绫�
+     */
+    @Data
+    public static class LocationPrefix {
+        /**
+         * CA鍓嶇紑锛氬彧鍋氬叆搴撶殑搴撲綅鍓嶇紑锛堥粯璁�"CA"锛�
+         */
+        private String inboundOnly = "CA";
+
+        /**
+         * WA鍓嶇紑锛氫細琚嚭搴撳垎閰嶇紦瀛樺尯鐨勫簱浣嶅墠缂�锛堥粯璁�"WA"锛�
+         */
+        private String cacheArea = "WA";
+    }
 }

--
Gitblit v1.9.1