Browse Source

开单合理项维护

zhaops 4 years ago
parent
commit
00c3b7e449
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/main/java/com/diagbot/repository/BillManRepository.java

+ 4 - 2
src/main/java/com/diagbot/repository/BillManRepository.java

@@ -21,7 +21,8 @@ public interface BillManRepository extends Neo4jRepository<BillItemDetail,Long>
 
     @Query(value = "match(m)-[r]->(n) \n" +
             "where 1 = 1 \n" +
-            "and (case {labels} is not null and size({labels})>0 when true then labels(m)[0] in {labels} else 1 = 1 end ) \n" +
+            "and (m:实验室检查名称 or m:辅助检查名称 or m:辅助检查子项目名称 or m:医保手术和操作名称 or m:药品注册名) \n" +
+            //"and (case {labels} is not null and size({labels})>0 when true then labels(m)[0] in {labels} else 1 = 1 end ) \n" +
             "and (case {conceptName} is not null and {conceptName} <> '' when true then m.name contains {conceptName} else 1 = 1 end ) \n" +
             "and (case {conditionName} is not null and {conditionName} <> '' when true then n.name contains {conditionName} else 1 = 1 end ) \n" +
             "and (case {relationStatus} is not null and {relationStatus} <> '' when true then r.状态 = {relationStatus} else 1 = 1 end ) \n" +
@@ -42,7 +43,8 @@ public interface BillManRepository extends Neo4jRepository<BillItemDetail,Long>
             "order by id(r) desc",
             countQuery = "match(m)-[r]->(n) \n" +
                     "where 1 = 1 \n" +
-                    "and (case {labels} is not null and size({labels})>0 when true then labels(m)[0] in {labels} else 1 = 1 end ) \n" +
+                    "and (m:实验室检查名称 or m:辅助检查名称 or m:辅助检查子项目名称 or m:医保手术和操作名称 or m:药品注册名) \n" +
+                    //"and (case {labels} is not null and size({labels})>0 when true then labels(m)[0] in {labels} else 1 = 1 end ) \n" +
                     "and (case {conceptName} is not null and {conceptName} <> '' when true then m.name contains {conceptName} else 1 = 1 end ) \n" +
                     "and (case {conditionName} is not null and {conditionName} <> '' when true then n.name contains {conditionName} else 1 = 1 end ) \n" +
                     "and (case {relationStatus} is not null and {relationStatus} <> '' when true then r.状态 = {relationStatus} else 1 = 1 end ) \n" +