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
7533a9f4
Commit
7533a9f4
authored
Dec 02, 2021
by
qiuchaofei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug 1,部分关系没有类型,2 节点不存在是,获取属性报错。
parent
69d60fa2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
MetadataServiceImpl.java
...ta/metadataRelation/service/impl/MetadataServiceImpl.java
+10
-1
application-dev.yml
src/main/resources/application-dev.yml
+1
-1
application-test.yml
src/main/resources/application-test.yml
+3
-1
No files found.
src/main/java/com/keymobile/metadata/metadataRelation/service/impl/MetadataServiceImpl.java
View file @
7533a9f4
...
...
@@ -659,6 +659,7 @@ public class MetadataServiceImpl implements IMetadataService {
Edge
edge
=
new
Edge
();
edge
.
setFromId
(
returnNode
.
getId
());
edge
.
setToId
(
childId
);
edge
.
setType
(
"组合"
);
childId
=
returnNode
.
getId
();
returnReslult
.
getEdges
().
add
(
edge
);
}
else
if
(
value
.
type
().
name
().
equals
(
"INTEGER"
))
{
...
...
@@ -837,7 +838,7 @@ public class MetadataServiceImpl implements IMetadataService {
"return job"
;
}
StatementResult
result1
=
session
.
run
(
cypher
);
StatementResult
result1
=
session
.
run
(
cypher
);
while
(
result1
.
hasNext
())
{
Record
record
=
result1
.
next
();
...
...
@@ -1178,6 +1179,14 @@ public class MetadataServiceImpl implements IMetadataService {
Map
<
String
,
Object
>
attriuteMap
=
metadataRepoRemoteService
.
getMetadata
(
metadataId
);
if
(
attriuteMap
==
null
)
{
logger
.
info
(
"没有找到id:"
+
metadataId
+
"的元数据。"
);
MetaData
metaData
=
metadataRepository
.
findMetaDataByMetadataId
(
metadataId
);
returnMap
.
put
(
"名字"
,
metaData
.
getName
());
returnMap
.
put
(
"别名"
,
metaData
.
getDescription
());
returnMap
.
put
(
"中文名"
,
""
);
returnMap
.
put
(
"最后更新时间"
,
""
);
return
returnMap
;
}
String
name
=
(
String
)
attriuteMap
.
get
(
"name"
);
if
(
attriuteMap
.
get
(
"cnName"
)
!=
null
&&
!
attriuteMap
.
get
(
"cnName"
).
equals
(
""
))
{
...
...
src/main/resources/application-dev.yml
View file @
7533a9f4
...
...
@@ -36,7 +36,7 @@ eureka:
instance
:
prefer-ip-address
:
true
security
:
permit
:
fals
e
permit
:
tru
e
authUser
:
root
authPwd
:
pwd
...
...
src/main/resources/application-test.yml
View file @
7533a9f4
...
...
@@ -37,8 +37,10 @@ eureka:
defaultZone
:
http://192.168.0.111:8081/eureka/
instance
:
prefer-ip-address
:
true
instance-id
:
192.168.0.109:8289
hostname
:
qiucf
security
:
permit
:
fals
e
permit
:
tru
e
authUser
:
root
authPwd
:
pwd
...
...
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