瀏覽代碼

症状、体征推送疾病添加典型标识

kongwz 4 年之前
父節點
當前提交
f4c1945952
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/main/java/com/diagbot/repository/SymptomNameRepository.java

+ 1 - 0
src/main/java/com/diagbot/repository/SymptomNameRepository.java

@@ -16,6 +16,7 @@ public interface SymptomNameRepository extends Neo4jRepository<Symptom, Long> {
 
 
     List<Symptom> findByNameContaining(String name);
     List<Symptom> findByNameContaining(String name);
 
 
+//    @Query("match(d:医保疾病名称)-[r{典型:1}]->(s) where any(label in labels(s) WHERE label in ['症状', '体征']) and s.name in {py} return d.name")
     @Query("match(d:医保疾病名称)-[r]->(s) where any(label in labels(s) WHERE label in ['症状', '体征']) and s.name in {py} return d.name")
     @Query("match(d:医保疾病名称)-[r]->(s) where any(label in labels(s) WHERE label in ['症状', '体征']) and s.name in {py} return d.name")
     List<String> getDisBySymptoms(@Param("py")List<String> symptoms);
     List<String> getDisBySymptoms(@Param("py")List<String> symptoms);
 }
 }