Commit 36fb756d by qiuchaofei

1.表查询,对节点的类型做了限制

parent 64ce6229
......@@ -121,7 +121,7 @@ public class RelationalGraphController {
}
//搜索接口,多个搜索结果,则先弹出列表(对象的全路径),再进行选择哪个对象
@ApiOperation(tags = "", value = "传入表的id,返回与表相关的模型,标准,质量,资产,作业等对象")
@ApiOperation(tags = "", value = "传入表的id,返回对象的图形")
@RequestMapping(path = "/searchByMetadataId", method = RequestMethod.GET)
public Map<String,List<ReturnNode>> searchByMetadataId(String tableId){
return tableService.getRelationObjectByTableId (tableId);
......
......@@ -13,10 +13,10 @@ import java.util.List;
public interface Neo4jTableRepository extends Neo4jRepository<Neo4jTable,Long> {
List<Neo4jTable> findNeo4jTableByMetadataId(String metadataId);
@Query("match (n:Neo4jTable{metadataId:{tableId}} )<-[r:流向]-(m) return m ")
@Query("match (n:Neo4jTable{metadataId:{tableId}} )<-[r:流向]-(m:Neo4jTable) return m ")
List<BaseNode> getSourceTable(@Param("tableId") String tableId);
@Query("match (n:Neo4jTable{metadataId:{tableId}} )-[r:流向]->(m) return m ")
@Query("match (n:Neo4jTable{metadataId:{tableId}} )-[r:流向]->(m:Neo4jTable) return m ")
List<BaseNode> getTargetTable(@Param("tableId") String tableId);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment