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; } /**