From 8c85e6c70be2267979af247dc7757ed276b7dc3d Mon Sep 17 00:00:00 2001 From: wr <1754607820@qq.com> Date: Thu, 26 Dec 2024 11:33:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detection/service/impl/DetectionServiceImpl.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/detection/src/main/java/com/njcn/gather/detection/service/impl/DetectionServiceImpl.java b/detection/src/main/java/com/njcn/gather/detection/service/impl/DetectionServiceImpl.java index 71059954..fc94f56c 100644 --- a/detection/src/main/java/com/njcn/gather/detection/service/impl/DetectionServiceImpl.java +++ b/detection/src/main/java/com/njcn/gather/detection/service/impl/DetectionServiceImpl.java @@ -15,6 +15,7 @@ import org.springframework.stereotype.Service; import java.math.BigDecimal; import java.math.RoundingMode; +import java.security.Key; import java.util.*; import java.util.stream.Collectors; @@ -41,11 +42,13 @@ public class DetectionServiceImpl { * 开始处理指标类型 * 一共20组数据,开始处理格式 */ - public void text(List dev, SourceIssue issue, DictDataEnum dataRule) { + public Map text(List dev, SourceIssue issue, DictDataEnum dataRule) { Map> devDataMap = dev.stream().collect(Collectors.groupingBy(DevData::getId)); + Map stringBooleanMap=new LinkedHashMap<>(); devDataMap.forEach(((key, value) -> { - DetectionIndexProcessing(value, dataRule, issue); + stringBooleanMap.put(key, DetectionIndexProcessing(value, dataRule, issue)); })); + return stringBooleanMap; } /**