|
@@ -289,12 +289,16 @@ public class NeoFacade {
|
|
|
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);
|
|
|
+ collect.forEach((k,n)->{
|
|
|
+ NeoPushDTO neoPushDTO = new NeoPushDTO();
|
|
|
+ PushBaseDTO pushBaseDTO = new PushBaseDTO();
|
|
|
+ pushBaseDTO.setName(k);
|
|
|
+ neoPushDTO.setDisease(pushBaseDTO);
|
|
|
+ neoPushDTOS.add(neoPushDTO);
|
|
|
+ });
|
|
|
|
|
|
});
|
|
|
- System.out.println();
|
|
|
-
|
|
|
|
|
|
-// String dis_first = dis_count.entrySet().stream().map(x -> x.getKey()).collect(Collectors.toList()).get(0);
|
|
|
|
|
|
return neoPushDTOS;
|
|
|
}
|