浏览代码

模型不分症状和体征,所以症状和体征一块儿缓存

kongwz 4 年之前
父节点
当前提交
2a68f5d747
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/diagbot/repository/BaseNodeRepository.java

+ 1 - 1
src/main/java/com/diagbot/repository/BaseNodeRepository.java

@@ -31,7 +31,7 @@ public interface BaseNodeRepository extends Neo4jRepository<BaseNode, Long> {
             " RETURN DISTINCT(m.name)+'::'+c.name")
     List<String> getMedJiePouClass();
 
-    @Query("match(s:症状) return distinct s.name")
+    @Query("match(s) where any(label in labels(s) where label in ['症状','体征']) return distinct s.name")
     List<String> getSymptomClass();
 
     @Query("match(d:医保疾病名称)-[r:医保疾病名称相关性别]->(h) return DISTINCT d.name+'&'+h.name")