From 79c8fc63a43729d6097b19843ef1c21274690ab6 Mon Sep 17 00:00:00 2001 From: gengby <858962040@qq.com> Date: Fri, 22 Jul 2022 13:33:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StandardInspectSiteDeviceDriver.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hd/nladmin-system/src/main/java/org/nl/acs/device_driver/standard_inspect_site/StandardInspectSiteDeviceDriver.java b/hd/nladmin-system/src/main/java/org/nl/acs/device_driver/standard_inspect_site/StandardInspectSiteDeviceDriver.java index 2dc22d6..220ee91 100644 --- a/hd/nladmin-system/src/main/java/org/nl/acs/device_driver/standard_inspect_site/StandardInspectSiteDeviceDriver.java +++ b/hd/nladmin-system/src/main/java/org/nl/acs/device_driver/standard_inspect_site/StandardInspectSiteDeviceDriver.java @@ -470,6 +470,11 @@ public class StandardInspectSiteDeviceDriver extends AbstractOpcDeviceDriver imp if (standardInspectSiteDeviceDriver.getMove() != 0 || standardInspectSiteDeviceDriver.getMode() != 2) { continue; } + //判断是否已经有该起点设备的任务,如果有就结束循环 + int num1 = taskserver.querySameOriginTask(start_device_code); + if (num1 != 0) { + continue; + } //判断是否有相同终点的任务,有就结束本次循环 int num = taskserver.querySameDestinationTask(next_device_code); if (num != 0) {