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
dc6e49eb
Commit
dc6e49eb
authored
Jun 23, 2022
by
qiuchaofei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对关系进行排序
parent
e60aa06f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
MetadataServiceImpl.java
...ta/metadataRelation/service/impl/MetadataServiceImpl.java
+7
-3
No files found.
src/main/java/com/keymobile/metadata/metadataRelation/service/impl/MetadataServiceImpl.java
View file @
dc6e49eb
...
...
@@ -563,7 +563,7 @@ public class MetadataServiceImpl implements IMetadataService {
Map
<
Long
,
ReturnNode
>
nodesMap
=
new
HashMap
<>();
Map
<
String
,
MetaModel
>
metaModelMap
=
new
HashMap
<>();
Map
<
String
,
ReturnEdge
>
returnEdgeMap
=
new
TreeMap
<>();
Map
<
Integer
,
ReturnEdge
>
returnEdgeMap
=
new
TreeMap
<>();
Map
<
String
,
String
>
colorMap
=
new
HashMap
<>();
while
(
statementResult
.
hasNext
())
{
...
...
@@ -595,7 +595,7 @@ public class MetadataServiceImpl implements IMetadataService {
}
private
void
getRelationFromneo4jRelationSystem
(
Map
<
String
,
ReturnEdge
>
returnEdgeMap
,
Map
<
Long
,
ReturnNode
>
nodesMap
,
private
void
getRelationFromneo4jRelationSystem
(
Map
<
Integer
,
ReturnEdge
>
returnEdgeMap
,
Map
<
Long
,
ReturnNode
>
nodesMap
,
Iterable
<
Relationship
>
relationships
,
Map
<
String
,
String
>
colorMap
)
{
for
(
Relationship
relationship
:
relationships
)
{
...
...
@@ -606,7 +606,11 @@ public class MetadataServiceImpl implements IMetadataService {
* asMap 相当于 节点的properties属性信息
*/
// relationship.id();
String
xuhao
=
""
+
relationship
.
asMap
().
get
(
"序号"
);
Integer
xuhao
=
0
;
String
xuhaoStringg
=
""
+
relationship
.
asMap
().
get
(
"序号"
);
if
(
xuhaoStringg
!=
null
){
xuhao
=
Integer
.
parseInt
(
xuhaoStringg
);
}
String
xieyi
=
""
+
relationship
.
asMap
().
get
(
"协议"
);
String
yanse
=
""
+
relationship
.
asMap
().
get
(
"颜色"
);
String
yewuleibie
=
""
+
relationship
.
asMap
().
get
(
"业务类别"
);
...
...
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