# 测试调整路径规划消息下发处理

This commit is contained in:
2026-08-25 08:36:45 +00:00
parent 544efbd0f9
commit 9ff685e0c1
4 changed files with 64 additions and 64 deletions

View File

@@ -214,11 +214,11 @@ public class DevicePlanTaskMonitorService {
planMap.keySet().forEach(key -> {
NettyDevice device = deviceSessionManager.getDevice(key);
//判断是否能进execute
if (device != null && device.getCurrentTaskId() == null && device.getOnlineStatus() != null && device.getOnlineStatus() == 1) {
if (device != null && device.getTask() == null && device.getOnlineStatus() != null && device.getOnlineStatus() == 1) {
List<DevicePlanTask> tasks = planMap.get(key);
if (!CollectionUtils.isEmpty(tasks)) {
tasks.removeIf(Objects::isNull);
tasks.sort(
tasks.sort(
Comparator.comparing(
DevicePlanTask::getStartTime,
Comparator.nullsLast(Comparator.naturalOrder())