# 测试调整路径规划消息下发处理
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user