|
@@ -17,9 +17,9 @@ import java.util.List;
|
|
|
*/
|
|
|
public interface EntityInfoRepository extends Neo4jRepository<EntityBaseInfo,Long> {
|
|
|
@Query(value = "match(n)\n" +
|
|
|
- "where " +
|
|
|
+ "where exists(n.name) and n.name<>''\n" +
|
|
|
//"any(label in labels(n) where label in {labels})\n" +
|
|
|
- "(case when {label} is not null and {label} <> '' then\n" +
|
|
|
+ "and (case when {label} is not null and {label} <> '' then\n" +
|
|
|
"(case {label}\n" +
|
|
|
"when '医保疾病名称' then n:医保疾病名称 \n " +
|
|
|
"when '实验室检查套餐名' then n:实验室检查套餐名 \n" +
|
|
@@ -83,9 +83,9 @@ public interface EntityInfoRepository extends Neo4jRepository<EntityBaseInfo,Lon
|
|
|
"return id(n) as id,n.name as name,n.拼音编码 as pycode,labels(n)[0] as labelType,n.状态 as status,n.静态知识标识 as is_kl\n" +
|
|
|
"order by n.状态 desc, id(n) desc",
|
|
|
countQuery = "match(n)\n" +
|
|
|
- "where " +
|
|
|
+ "where exists(n.name) and n.name<>''\n" +
|
|
|
//"any(label in labels(n) where label in {labels})\n" +
|
|
|
- "(case when {label} is not null and {label} <> '' then\n" +
|
|
|
+ "and (case when {label} is not null and {label} <> '' then\n" +
|
|
|
"(case {label}\n" +
|
|
|
"when '医保疾病名称' then n:医保疾病名称 \n " +
|
|
|
"when '实验室检查套餐名' then n:实验室检查套餐名 \n" +
|