From 42701db2d5f04d9d21b2183ad95112057c6140fa Mon Sep 17 00:00:00 2001 From: chendaofei <857448963@qq.com> Date: Mon, 7 Apr 2025 10:23:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=91=E6=B5=8B=E8=84=9A=E6=9C=AC=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gather/detection/handler/SocketDevResponseService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/detection/src/main/java/com/njcn/gather/detection/handler/SocketDevResponseService.java b/detection/src/main/java/com/njcn/gather/detection/handler/SocketDevResponseService.java index 53ff06ac..a9118ff0 100644 --- a/detection/src/main/java/com/njcn/gather/detection/handler/SocketDevResponseService.java +++ b/detection/src/main/java/com/njcn/gather/detection/handler/SocketDevResponseService.java @@ -791,7 +791,8 @@ public class SocketDevResponseService { } //正式检测 sourceIssues = pqScriptDtlsService.listSourceIssue(issueParam); - sourceIssues = sourceIssues.stream().sorted(Comparator.comparing(SourceIssue::getIndex)).collect(Collectors.toList()); + sourceIssues = sourceIssues.stream().collect(Collectors.groupingBy(SourceIssue::getType)).values().stream().flatMap(list->list.stream().sorted(Comparator.comparing(SourceIssue::getIndex))).collect(Collectors.toList()); + // 存放所有检测小项 SocketManager.addSourceList(sourceIssues); // 按照大项分组。key为大项code,value为小项个数