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
9cecd572
Commit
9cecd572
authored
May 19, 2022
by
qiuchaofei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.用序号做key值
parent
11ec18b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
DataRelationAnalyServiceImpl.java
...taRelation/service/impl/DataRelationAnalyServiceImpl.java
+2
-1
No files found.
src/main/java/com/keymobile/metadata/metadataRelation/service/impl/DataRelationAnalyServiceImpl.java
View file @
9cecd572
...
...
@@ -44,6 +44,7 @@ public class DataRelationAnalyServiceImpl implements DataRelationAnalyService {
}
else
if
(
parentId
!=
null
){
cypher
=
"match (n:Neo4jTable{isEnvironment:\""
+
parentId
+
"\"}) where not ((n)-[:`流向`]-()) return n order by n.name SKIP "
+
start
+
" LIMIT "
+
end
+
" "
;
}
int
count
=
0
;
logger
.
info
(
"查找孤立表的语句:"
+
cypher
);
StatementResult
result
=
session
.
run
(
cypher
);
while
(
result
.
hasNext
()){
...
...
@@ -64,7 +65,7 @@ public class DataRelationAnalyServiceImpl implements DataRelationAnalyService {
returnNode
.
setId
(
metaData
.
getMetadataId
());
returnNode
.
setType
(
metaData
.
getMetaModel
());
returnNode
.
setCnName
(
metaData
.
getCnName
());
returnNodeMap
.
put
(
metaData
.
getMetadataId
()
,
returnNode
);
returnNodeMap
.
put
(
""
+
count
++
,
returnNode
);
}
}
}
...
...
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