From b5cefd0727da0040ad7130c72f18df07643490cd Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期一, 13 四月 2026 15:25:44 +0800
Subject: [PATCH] #站点运行优化
---
src/main/java/com/zy/core/utils/StationOperateProcessUtils.java | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/main/java/com/zy/core/utils/StationOperateProcessUtils.java b/src/main/java/com/zy/core/utils/StationOperateProcessUtils.java
index 8f4dd67..cdfb920 100644
--- a/src/main/java/com/zy/core/utils/StationOperateProcessUtils.java
+++ b/src/main/java/com/zy/core/utils/StationOperateProcessUtils.java
@@ -143,8 +143,8 @@
return;
}
- Integer backStationId = stationObjModel.getBarcodeStation() == null ? null : stationObjModel.getBarcodeStation().getStationId();
- if (backStationId == null) {
+ Integer barcodeStationId = stationObjModel.getBarcodeStation() == null ? null : stationObjModel.getBarcodeStation().getStationId();
+ if (barcodeStationId == null) {
return;
}
@@ -152,12 +152,14 @@
StationCommandType.MOVE,
commonService.getWorkNo(WrkIoType.ENABLE_IN.id),
stationId,
- backStationId,
+ barcodeStationId,
0
);
stationCommandDispatcher.dispatch(basDevp.getDevpNo(), command, STATION_COMMAND_SOURCE, "enable-in");
- Utils.precomputeInTaskEnableRow(backStationId);
+ Utils.precomputeInTaskEnableRow(barcodeStationId);
redisUtil.set(RedisKeyType.GENERATE_ENABLE_IN_STATION_DATA_LIMIT.key + stationId, "lock", 15);
+ // 鍚姩鍏ュ簱鏃跺垹闄ら��鍥炴帶鍒秌ey锛屽厑璁稿悗缁紓甯告椂鍐嶆鐢熸垚閫�鍥炲懡浠�
+ redisUtil.del(RedisKeyType.GENERATE_STATION_BACK_LIMIT.key + barcodeStationId);
News.info("{}绔欑偣鍚姩鍏ュ簱鎴愬姛锛屾暟鎹寘:{}", stationId, JSON.toJSONString(command));
}
--
Gitblit v1.9.1