From 7c4d3d957c431aad12f90511770e2fe429bcd380 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 24 十二月 2024 16:38:25 +0800
Subject: [PATCH] #
---
zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/PatrolService.java | 27 ++++++++++++++++++++++-----
1 files changed, 22 insertions(+), 5 deletions(-)
diff --git a/zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/PatrolService.java b/zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/PatrolService.java
index 012b4b9..d9cca2f 100644
--- a/zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/PatrolService.java
+++ b/zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/PatrolService.java
@@ -34,9 +34,9 @@
@Service
public class PatrolService {
- private static final int SCHEDULE_TIME_INTERVAL = 5;
+ private static final int SCHEDULE_TIME_INTERVAL = 300;
- private static final Map<String, ScheduledFuture<?>> AGV_PATROL_MAP = new ConcurrentHashMap<>();
+ public static final Map<String, ScheduledFuture<?>> AGV_PATROL_MAP = new ConcurrentHashMap<>();
private final RedisSupport redis = RedisSupport.defaultRedisSupport;
@@ -84,7 +84,7 @@
if (null == destinationCode) {
return;
}
- if (mainLockWrapService.buildMinorTask(agv, agvDetail, TaskTypeType.MOVE, destinationCode.getData())) {
+ if (mainLockWrapService.buildMinorTask(agv, TaskTypeType.MOVE, destinationCode.getData(), null)) {
log.info(agv.getUuid() + "寮�濮嬭蛋琛屾紨绀�...");
}
}
@@ -106,7 +106,24 @@
Code startCode = codeService.getById(agvDetail.getRecentCode());
List<String> notInCodeList = new ArrayList<>();
- notInCodeList.add("00000151");
+ notInCodeList.add("00000301");
+ notInCodeList.add("00000302");
+ notInCodeList.add("00000303");
+ notInCodeList.add("00000351");
+ notInCodeList.add("00000353");
+ notInCodeList.add("00000401");
+ notInCodeList.add("00000402");
+
+ notInCodeList.add("00000311");
+ notInCodeList.add("00000312");
+ notInCodeList.add("00000313");
+ notInCodeList.add("00000361");
+ notInCodeList.add("00000363");
+ notInCodeList.add("00000411");
+ notInCodeList.add("00000412");
+
+ notInCodeList.add("00000046");
+ notInCodeList.add("00000047");
List<Code> list = codeService.list(new LambdaQueryWrapper<Code>().notIn(Code::getData, notInCodeList));
Collections.shuffle(list);
@@ -152,7 +169,7 @@
}
};
- ScheduledFuture<?> scheduledFuture = scheduler.scheduleAtFixedRate(patrolTask, 0, SCHEDULE_TIME_INTERVAL, TimeUnit.SECONDS);
+ ScheduledFuture<?> scheduledFuture = scheduler.scheduleAtFixedRate(patrolTask, 0, SCHEDULE_TIME_INTERVAL, TimeUnit.MILLISECONDS);
AGV_PATROL_MAP.put(agvNo, scheduledFuture);
log.info("宸插惎鍔ˋGV " + agvNo + " 鐨勮窇搴撲换鍔°��");
--
Gitblit v1.9.1