Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neo4jRelation
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qiuchaofei
neo4jRelation
Commits
36fb756d
Commit
36fb756d
authored
Dec 23, 2021
by
qiuchaofei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.表查询,对节点的类型做了限制
parent
64ce6229
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
RelationalGraphController.java
...etadataRelation/controller/RelationalGraphController.java
+1
-1
Neo4jTableRepository.java
...taRelation/respository/metadata/Neo4jTableRepository.java
+2
-2
No files found.
src/main/java/com/keymobile/metadata/metadataRelation/controller/RelationalGraphController.java
View file @
36fb756d
...
...
@@ -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
);
...
...
src/main/java/com/keymobile/metadata/metadataRelation/respository/metadata/Neo4jTableRepository.java
View file @
36fb756d
...
...
@@ -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
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment