Bladeren bron

标准术语维护

zhaops 4 jaren geleden
bovenliggende
commit
691d45dbd6

+ 2 - 1
src/main/java/com/diagbot/repository/EntityInfoRepository.java

@@ -138,6 +138,7 @@ public interface EntityInfoRepository extends Neo4jRepository<EntityBaseInfo,Lon
 
     @Query("create (n) \n" +
             "set  " +
+            "labels(n)=[:#{#entityInfo.labelType}],"+
             "n.name = :#{#entityInfo.name}," +
             "n.拼音编码 = :#{#entityInfo.pycode}," +
             "n.静态知识标识 = :#{#entityInfo.is_kl}," +
@@ -145,6 +146,6 @@ public interface EntityInfoRepository extends Neo4jRepository<EntityBaseInfo,Lon
             "with id(n) as nodeId\n" +
             "match (n)\n" +
             "where id(n) = nodeId\n" +
-            "set n::#{#entityInfo.labelType}")
+            "set labels(n)=[:#{#entityInfo.labelType}]")
     void create(@Param("entityInfo") EntityInfo entityInfo);
 }

+ 2 - 2
src/main/java/com/diagbot/repository/PacsNameRepository.java

@@ -97,7 +97,7 @@ public interface PacsNameRepository extends Neo4jRepository<PacsName, Long> {
             "RETURN DISTINCT n.name as name LIMIT {size}\n")
     List<String> getPACSNames(@Param("size") Integer size);
 
-    @Query("match (n:医保疾病名称) \n" +
+    @Query("match (n:辅助检查名称) \n" +
             "where id(n) = :#{#entityInfo.id} \n" +
             "set  " +
             "n.name = :#{#entityInfo.name}," +
@@ -110,7 +110,7 @@ public interface PacsNameRepository extends Neo4jRepository<PacsName, Long> {
     PacsName update(@Param("entityInfo") EntityInfo entityInfo,
                     @Param("gender") String gender);
 
-    @Query("create (n:医保疾病名称) \n" +
+    @Query("create (n:辅助检查名称) \n" +
             "set  " +
             "n.name = :#{#entityInfo.name}," +
             "n.拼音编码 = :#{#entityInfo.pycode}," +

+ 2 - 2
src/main/java/com/diagbot/repository/PacsSubNameRepository.java

@@ -32,7 +32,7 @@ public interface PacsSubNameRepository extends Neo4jRepository<PacsSubName, Long
             "RETURN n,[ (n)-[r]->(m) | [ r, m ] ], ID(n)\n")
     List<PacsSubName> index(@Param("name") String name, @Param("pycode") String pycode, @Param("size") Integer size);
 
-    @Query("match (n:医保疾病名称) \n" +
+    @Query("match (n:辅助检查子项目名称) \n" +
             "where id(n) = :#{#entityInfo.id} \n" +
             "set  " +
             "n.name = :#{#entityInfo.name}," +
@@ -45,7 +45,7 @@ public interface PacsSubNameRepository extends Neo4jRepository<PacsSubName, Long
     PacsSubName update(@Param("entityInfo") EntityInfo entityInfo,
                        @Param("gender") String gender);
 
-    @Query("create (n:医保疾病名称) \n" +
+    @Query("create (n:辅助检查子项目名称) \n" +
             "set  " +
             "n.name = :#{#entityInfo.name}," +
             "n.拼音编码 = :#{#entityInfo.pycode}," +