From d6d25613f504d8fc4c6ffa8a1854beb4dac044d0 Mon Sep 17 00:00:00 2001
From: chen.llin <1442464845@qq.comm>
Date: 星期日, 18 一月 2026 09:16:24 +0800
Subject: [PATCH] 菜单

---
 src/main/java/com/zy/common/properties/AgvProperties.java |  100 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 100 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..87b4a4c 100644
--- a/src/main/java/com/zy/common/properties/AgvProperties.java
+++ b/src/main/java/com/zy/common/properties/AgvProperties.java
@@ -39,6 +39,21 @@
     private WhsTypeMapping whsTypeMapping = new WhsTypeMapping();
 
     /**
+     * 绔欑偣鍒嗛厤绛栫暐閰嶇疆
+     */
+    private SiteAllocationStrategy siteAllocation = new SiteAllocationStrategy();
+
+    /**
+     * 搴撲綅鍓嶇紑閰嶇疆
+     */
+    private LocationPrefix locationPrefix = new LocationPrefix();
+
+    /**
+     * AGV鍛煎彨閲嶈瘯閰嶇疆
+     */
+    private AgvCallRetry callRetry = new AgvCallRetry();
+
+    /**
      * whs_type鏄犲皠閰嶇疆鍐呴儴绫�
      */
     @Data
@@ -68,6 +83,11 @@
          * 绔欑偣鍒楄〃
          */
         private List<String> stations = new ArrayList<>();
+
+        /**
+         * 渚ц竟鏄剧ず鍚嶇О锛堢敤浜庢棩蹇楀拰鎻愮ず淇℃伅锛屽"涓滀晶"銆�"瑗夸晶"锛�
+         */
+        private String displayName = "";
     }
 
     /**
@@ -99,4 +119,84 @@
         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";
+    }
+
+    /**
+     * AGV鍛煎彨閲嶈瘯閰嶇疆鍐呴儴绫�
+     */
+    @Data
+    public static class AgvCallRetry {
+        /**
+         * 鏄惁鍚敤閲嶈瘯鏈哄埗
+         * true: 鍚敤閲嶈瘯锛屽け璐ュ悗浼氳嚜鍔ㄩ噸璇�
+         * false: 涓嶅惎鐢ㄩ噸璇曪紝澶辫触鍚庣洿鎺ュ仠姝紙榛樿锛�
+         */
+        private boolean enabled = false;
+
+        /**
+         * 鏈�澶ч噸璇曟鏁�
+         * 褰撳懠鍙獳GV澶辫触鏃讹紝鏈�澶氶噸璇曞灏戞鍚庡仠姝�
+         * 榛樿鍊硷細3娆�
+         */
+        private int maxRetryCount = 3;
+
+        /**
+         * 閲嶈瘯闂撮殧鏃堕棿锛堢锛�
+         * 姣忔閲嶈瘯涔嬮棿鐨勭瓑寰呮椂闂�
+         * 榛樿鍊硷細5绉�
+         */
+        private int retryIntervalSeconds = 5;
+    }
 }

--
Gitblit v1.9.1