From 7a00d870311e608a04e1808a86c9db672cdf7a3c Mon Sep 17 00:00:00 2001 From: wangyiyun Date: Tue, 26 Jan 2021 18:08:21 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=20=E4=BC=98=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/dispose/manager/impl/DeviceTaskManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/dispose/manager/impl/DeviceTaskManagerImpl.java b/src/main/java/com/dispose/manager/impl/DeviceTaskManagerImpl.java index 0247aae3..98abd24d 100644 --- a/src/main/java/com/dispose/manager/impl/DeviceTaskManagerImpl.java +++ b/src/main/java/com/dispose/manager/impl/DeviceTaskManagerImpl.java @@ -48,7 +48,7 @@ public class DeviceTaskManagerImpl implements DeviceTaskManager { @Override public boolean addDisposeDeviceTaskInfo(Long taskId, Long deviceId, Long attackTypeMask) { // 如果已经存在相同任务,不再添加重复任务 - if (deviceTaskMapper.getTaskByDetails(taskId, deviceId).size() != 0) { + if (deviceTaskCreated(taskId, deviceId)) { return true; }