|
@@ -65,12 +65,14 @@ public interface BillManRepository extends Neo4jRepository<BillItemDetail,Long>
|
|
|
@Query("MATCH (n) \n" +
|
|
|
"WHERE (toLower(n.`name`) = toLower($name) OR toLower(n.`拼音编码`) = toLower($pycode)) \n" +
|
|
|
"AND labels(n)[0] in {labels} \n" +
|
|
|
+ "AND not(exists(n.禁忌人群指标) or exists(n.实验室检查指标) or exists(n.体征指标)) \n" +
|
|
|
"AND (case {notInIds} is not null and size({notInIds})>0 when true then not(id(n) in {notInIds}) else 1 = 1 end ) \n" +
|
|
|
"RETURN ID(n) as id, n.name as name,n.状态 as status,labels(n)[0] as conditionLabel,n.最小值 as minValue,n.最大值 as maxValue,n.单位 as unit,n.范围 as range \n" +
|
|
|
"union \n" +
|
|
|
"MATCH (n) \n " +
|
|
|
"WHERE (toLower(n.`name`) starts with toLower($name) OR toLower(n.`拼音编码`) starts with toLower($pycode)) \n " +
|
|
|
"AND labels(n)[0] in {labels} \n" +
|
|
|
+ "AND not(exists(n.禁忌人群指标) or exists(n.实验室检查指标) or exists(n.体征指标)) \n" +
|
|
|
"AND (case {notInIds} is not null and size({notInIds})>0 when true then not(id(n) in {notInIds}) else 1 = 1 end ) \n" +
|
|
|
"WITH n SKIP 0 LIMIT $size \n" +
|
|
|
"RETURN ID(n) as id, n.name as name,n.状态 as status,labels(n)[0] as conditionLabel,n.最小值 as minValue,n.最大值 as maxValue,n.单位 as unit,n.范围 as range \n" +
|
|
@@ -78,6 +80,7 @@ public interface BillManRepository extends Neo4jRepository<BillItemDetail,Long>
|
|
|
"MATCH (n) \n" +
|
|
|
"WHERE (toLower(n.`name`) CONTAINS toLower($name) OR toLower(n.`拼音编码`) CONTAINS toLower($pycode)) \n" +
|
|
|
"AND labels(n)[0] in {labels} \n" +
|
|
|
+ "AND not(exists(n.禁忌人群指标) or exists(n.实验室检查指标) or exists(n.体征指标)) \n" +
|
|
|
"AND (case {notInIds} is not null and size({notInIds})>0 when true then not(id(n) in {notInIds}) else 1 = 1 end ) \n" +
|
|
|
"WITH n SKIP 0 LIMIT $size \n" +
|
|
|
"RETURN ID(n) as id, n.name as name,n.状态 as status,labels(n)[0] as conditionLabel,n.最小值 as minValue,n.最大值 as maxValue,n.单位 as unit,n.范围 as range \n")
|