|
@@ -1,5 +1,6 @@
|
|
|
package com.diagbot.repository;
|
|
|
|
|
|
+import com.diagbot.entity.node.EntityBaseInfo;
|
|
|
import com.diagbot.entity.node.EntityInfo;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.data.domain.Pageable;
|
|
@@ -14,7 +15,7 @@ import java.util.List;
|
|
|
* @Author:zhaops
|
|
|
* @time: 2020/12/14 13:26
|
|
|
*/
|
|
|
-public interface EntityInfoRepository extends Neo4jRepository<EntityInfo,Long> {
|
|
|
+public interface EntityInfoRepository extends Neo4jRepository<EntityBaseInfo,Long> {
|
|
|
@Query(value = "with {labels} as nlabels\n" +
|
|
|
"match(n)\n" +
|
|
|
"where any(label in labels(n) where label in nlabels)\n" +
|
|
@@ -33,7 +34,7 @@ public interface EntityInfoRepository extends Neo4jRepository<EntityInfo,Long> {
|
|
|
"n.静态知识标识 = {is_kl} " +
|
|
|
"else 1 = 1 " +
|
|
|
"end ) \n" +
|
|
|
- "return id(n) as id,n.name,n.拼音编码 as pycode,labels(n)[0] as labelType,n.状态 as status,n.静态知识标识 as is_kl\n" +
|
|
|
+ "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 = "with {labels} as nlabels\n" +
|
|
|
"match(n)\n" +
|