|
@@ -270,7 +270,7 @@ public class NeoFacade {
|
|
|
//根据发病率排序
|
|
|
Map<String, Double> disdistributionCache = self.getDisdistributionCache();
|
|
|
numberDiseasesMap.forEach((x,y)->{
|
|
|
- y.parallelStream().forEach(z ->{
|
|
|
+ y.forEach(z ->{
|
|
|
if(disdistributionCache.containsKey(z)){
|
|
|
disdistributionCache.put(z,disdistributionCache.get(z));
|
|
|
}else {
|
|
@@ -278,12 +278,19 @@ public class NeoFacade {
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
- Map<Long,Map<String,Double>> disPack = new HashMap<>();
|
|
|
+ Map<Long,Map<String,Double>> disPack = new LinkedHashMap<>();
|
|
|
numberDiseasesMap.forEach((x,y)->{
|
|
|
Map<String,Double> dis_dbt = new HashMap<>();
|
|
|
- y.parallelStream().forEach(dis -> dis_dbt.put(dis,disdistributionCache.get(dis)));
|
|
|
+ y.forEach(dis -> dis_dbt.put(dis,disdistributionCache.get(dis)));
|
|
|
disPack.put(x,dis_dbt);
|
|
|
});
|
|
|
+ Map<Long,List<String>> num_sortDiseases = new HashMap<>();
|
|
|
+
|
|
|
+ disPack.forEach((x,y)->{
|
|
|
+ Map<String, Double> collect = y.entrySet().stream().sorted(Collections.reverseOrder(Map.Entry.comparingByValue())).collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e2,LinkedHashMap::new));
|
|
|
+ disPack.put(x,collect);
|
|
|
+
|
|
|
+ });
|
|
|
System.out.println();
|
|
|
|
|
|
|