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
b2b279c4
Commit
b2b279c4
authored
Dec 03, 2021
by
qiuchaofei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.查询对象为系统的图形,2 system节点的筛选
parent
688bcbda
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
MetaDataController.java
...adata/metadataRelation/controller/MetaDataController.java
+13
-5
IMetadataService.java
...e/metadata/metadataRelation/service/IMetadataService.java
+3
-1
MetadataServiceImpl.java
...ta/metadataRelation/service/impl/MetadataServiceImpl.java
+0
-0
No files found.
src/main/java/com/keymobile/metadata/metadataRelation/controller/MetaDataController.java
View file @
b2b279c4
...
@@ -88,8 +88,13 @@ public class MetaDataController {
...
@@ -88,8 +88,13 @@ public class MetaDataController {
@RequestMapping
(
path
=
"/searchGraphByMetadataId"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
path
=
"/searchGraphByMetadataId"
,
method
=
RequestMethod
.
GET
)
public
ReturnReslult
searchGraphByMetadataId
(
String
metadataId
,
String
layer
){
public
ReturnReslult
searchGraphByMetadataId
(
String
metadataId
,
String
layer
){
int
layerLong
=
Integer
.
valueOf
(
layer
);
int
layerLong
=
Integer
.
valueOf
(
layer
);
ReturnReslult
returnReslult
=
null
;
return
metadataService
.
searchGraph
(
metadataId
,
layerLong
);
if
(
metadataId
.
startsWith
(
"System="
)){
returnReslult
=
metadataService
.
searchGraphBySystem
(
metadataId
,
layerLong
);
}
else
{
returnReslult
=
metadataService
.
searchGraph
(
metadataId
,
layerLong
);
}
return
returnReslult
;
}
}
...
@@ -138,9 +143,11 @@ public class MetaDataController {
...
@@ -138,9 +143,11 @@ public class MetaDataController {
if
(
modelName0
==
null
||
modelName0
.
equals
(
""
))
{
if
(
modelName0
==
null
||
modelName0
.
equals
(
""
))
{
modelName0
=
"Table"
;
modelName0
=
"Table"
;
}
}
if
(!
modelName0
.
toLowerCase
().
equals
(
"all"
)){
if
(
modelName0
.
toLowerCase
().
equals
(
"system"
)){
returnReslult
=
metadataService
.
getSystemGraph
(
sizeInt
);
}
else
if
(
!
modelName0
.
toLowerCase
().
equals
(
"all"
)){
returnReslult
=
metadataService
.
findResultByModelName
(
modelName0
,
sizeInt
);
returnReslult
=
metadataService
.
findResultByModelName
(
modelName0
,
sizeInt
);
}
else
{
}
else
{
List
<
MetaData
>
metaDataList
=
metadataService
.
finAllMetaData
();
List
<
MetaData
>
metaDataList
=
metadataService
.
finAllMetaData
();
Map
<
String
,
Node
>
nodeMap
=
new
HashMap
<>();
Map
<
String
,
Node
>
nodeMap
=
new
HashMap
<>();
...
@@ -305,7 +312,8 @@ public class MetaDataController {
...
@@ -305,7 +312,8 @@ public class MetaDataController {
@ApiOperation
(
tags
=
""
,
value
=
"系统总图"
)
@ApiOperation
(
tags
=
""
,
value
=
"系统总图"
)
@RequestMapping
(
path
=
"/getSystemGraph"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
path
=
"/getSystemGraph"
,
method
=
RequestMethod
.
GET
)
public
ReturnReslult
getSystemGraph
(){
public
ReturnReslult
getSystemGraph
(){
return
metadataService
.
getSystemGraph
();
int
size
=
300
;
return
metadataService
.
getSystemGraph
(
size
);
}
}
...
...
src/main/java/com/keymobile/metadata/metadataRelation/service/IMetadataService.java
View file @
b2b279c4
...
@@ -16,7 +16,7 @@ public interface IMetadataService {
...
@@ -16,7 +16,7 @@ public interface IMetadataService {
ReturnReslult
findResultByModelName
(
String
modelName
,
int
count
);
ReturnReslult
findResultByModelName
(
String
modelName
,
int
count
);
ReturnReslult
getSystemGraph
();
ReturnReslult
getSystemGraph
(
int
size
);
ReturnReslult
searchGraph
(
String
metadataId
,
int
layer
);
ReturnReslult
searchGraph
(
String
metadataId
,
int
layer
);
...
@@ -95,4 +95,6 @@ public interface IMetadataService {
...
@@ -95,4 +95,6 @@ public interface IMetadataService {
List
<
TempNode
>
findAllTempNode
();
List
<
TempNode
>
findAllTempNode
();
Map
<
String
,
String
>
getAutoMatchByInput
(
String
name
,
int
countInt
,
int
offsetInt
);
Map
<
String
,
String
>
getAutoMatchByInput
(
String
name
,
int
countInt
,
int
offsetInt
);
ReturnReslult
searchGraphBySystem
(
String
metadataId
,
int
layerLong
);
}
}
src/main/java/com/keymobile/metadata/metadataRelation/service/impl/MetadataServiceImpl.java
View file @
b2b279c4
This diff is collapsed.
Click to expand it.
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