From 720e0926fa1c94b952c26e111206c5d6e1ed5ba2 Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期二, 21 四月 2026 15:59:49 +0800
Subject: [PATCH] Merge branch 'master' of http://47.97.1.152:5880/r/zy-wcs-master

---
 src/main/java/com/zy/core/utils/station/StationDispatchRuntimeStateSupport.java |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/core/utils/station/StationDispatchRuntimeStateSupport.java b/src/main/java/com/zy/core/utils/station/StationDispatchRuntimeStateSupport.java
index 7328225..0f2f324 100644
--- a/src/main/java/com/zy/core/utils/station/StationDispatchRuntimeStateSupport.java
+++ b/src/main/java/com/zy/core/utils/station/StationDispatchRuntimeStateSupport.java
@@ -137,6 +137,21 @@
         return tryAcquireLock(RedisKeyType.STATION_OUT_ORDER_DISPATCH_LIMIT_.key + wrkNo + "_" + stationId, seconds);
     }
 
+    public boolean hasRunBlockDirectReassignLimit(Integer wrkNo, Integer stationId) {
+        if (wrkNo == null || wrkNo <= 0 || stationId == null) {
+            return false;
+        }
+        return redisUtil != null
+                && redisUtil.get(RedisKeyType.STATION_RUN_BLOCK_DIRECT_REASSIGN_LIMIT_.key + wrkNo + "_" + stationId) != null;
+    }
+
+    public void recordRunBlockDirectReassignLimit(Integer wrkNo, Integer stationId, int seconds) {
+        if (wrkNo == null || wrkNo <= 0 || stationId == null || redisUtil == null || seconds <= 0) {
+            return;
+        }
+        redisUtil.set(RedisKeyType.STATION_RUN_BLOCK_DIRECT_REASSIGN_LIMIT_.key + wrkNo + "_" + stationId, "lock", seconds);
+    }
+
     public void signalSegmentReset(Integer taskNo, long waitMs) {
         if (redisUtil == null || taskNo == null || taskNo <= 0) {
             return;

--
Gitblit v1.9.1