|
@@ -250,8 +250,6 @@ public class NeoFacade {
|
|
|
if(lisPushVo != null){
|
|
|
List<Lis> lises = lisPushVo.getLises();
|
|
|
if(ListUtil.isNotEmpty(lises)){
|
|
|
- List<YiBaoDiseaseName> collect = lises.parallelStream()
|
|
|
- .map(x -> nodeRepository.getDisByLis(x.getUniqueName(), x.getDetailName())).collect(Collectors.toList());
|
|
|
List<String> lis_dis = lises.parallelStream()
|
|
|
.map(x -> nodeRepository.getDisByLis(x.getUniqueName(), x.getDetailName()))
|
|
|
.filter(z->z!=null && NeoUtil.matchBasic(z,sex,age)).map(z->z.getName())
|
|
@@ -322,6 +320,7 @@ public class NeoFacade {
|
|
|
}
|
|
|
|
|
|
public List<String> getDisByPacsResult(List<String> pacsResult,Double age,Integer sex){
|
|
|
+
|
|
|
List<PacsResult> byNameIn = pacsResultRepository.findByNameIn(pacsResult);
|
|
|
List<String> allDis = byNameIn.stream()
|
|
|
.map(z -> z.getDisease().stream().filter(o -> NeoUtil.matchBasic(o,sex,age)).map(y -> y.getName()).collect(Collectors.toList())).flatMap(List::stream)
|
|
@@ -339,10 +338,11 @@ public class NeoFacade {
|
|
|
*/
|
|
|
public List<String> pushDisBySymptom(SymptomNameRepository symptomNameRepository,List<String> symptoms,Double age,Integer sex){
|
|
|
List<String> allDis = Lists.newArrayList();
|
|
|
- List<Symptom> byNameIn = symptomNameRepository.findByNameIn(symptoms);
|
|
|
+ /*List<Symptom> byNameIn = symptomNameRepository.findByNameIn(symptoms);
|
|
|
allDis = byNameIn.parallelStream()
|
|
|
.map(z -> z.getDisease().stream().filter(o -> NeoUtil.matchBasic(o,sex,age)).map(y -> y.getName()).collect(Collectors.toList())).flatMap(List::stream)
|
|
|
- .collect(Collectors.toList());
|
|
|
+ .collect(Collectors.toList());*/
|
|
|
+ allDis = symptomNameRepository.getDisBySymptoms(symptoms);
|
|
|
return allDis;
|
|
|
}
|
|
|
|