소스 검색

bugFix 解决任务重复生成的问题

xiahan 9 달 전
부모
커밋
6ab0563730
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      js-security/security-common/src/main/java/com/rongwei/sfcommon/sys/service/impl/SaveCheckItemServiceImpl.java

+ 1 - 1
js-security/security-common/src/main/java/com/rongwei/sfcommon/sys/service/impl/SaveCheckItemServiceImpl.java

@@ -108,7 +108,7 @@ public class SaveCheckItemServiceImpl implements SaveCheckItemService {
         List<String> discoverIds = aspCheckDiscoveryItemDos.stream().map(AspCheckDiscoveryItemDo::getId).collect(Collectors.toList());
         aspCheckDiscoveryItemService.update(new LambdaUpdateWrapper<AspCheckDiscoveryItemDo>()
                 .set(AspCheckDiscoveryItemDo::getCreatetask, 1)
-                .eq(AspCheckDiscoveryItemDo::getId, discoverIds));
+                .in(AspCheckDiscoveryItemDo::getId, discoverIds));
         sendNotifyService.sendDangerTasksNotify(sendNotifyData);
 //        ThreadPoolExecutor threadPool = ExecutorBuilder.create()
 //                .setCorePoolSize(1)