REM:
1. 优化代码
This commit is contained in:
wangyiyun 2021-01-26 18:08:21 +08:00
parent da189c151f
commit 7a00d87031
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}