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
bfc204a6
Commit
bfc204a6
authored
Apr 08, 2022
by
qiuchaofei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全链分析图添加质量报告
parent
8ae31754
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
TableServiceImpl.java
...adata/metadataRelation/service/impl/TableServiceImpl.java
+33
-0
No files found.
src/main/java/com/keymobile/metadata/metadataRelation/service/impl/TableServiceImpl.java
View file @
bfc204a6
...
@@ -330,6 +330,39 @@ public class TableServiceImpl implements ITableService {
...
@@ -330,6 +330,39 @@ public class TableServiceImpl implements ITableService {
List
<
ReturnNode
>
targetTables
=
new
ArrayList
<>();
List
<
ReturnNode
>
targetTables
=
new
ArrayList
<>();
getTargetTable
(
tableId
,
targetTables
);
getTargetTable
(
tableId
,
targetTables
);
//质量报告
List
<
ReturnNode
>
qualityList
=
new
ArrayList
<>();
try
{
//从表获取字段:
List
<
Neo4jColumn
>
neo4jColumnList
=
neo4jTableRepository
.
getColumnByTableId
(
tableId
);
List
<
String
>
reportIdList
=
new
ArrayList
<>();
for
(
Neo4jColumn
neo4jColumn
:
neo4jColumnList
){
//
String
metaId
=
neo4jColumn
.
getMetadataId
();
// metaId = "Column=1=55d151b1ba484d0cbe3ccd7e9e2f0bfe";
Map
<
String
,
String
>
dataQualityRepost
=
dataQualityReportRemoteService
.
getDataAssetGraphInfoByMetadataId
(
metaId
);
if
(
dataQualityRepost
==
null
||
dataQualityRepost
.
size
()==
0
){
continue
;
}
String
reportId
=
dataQualityRepost
.
get
(
"id"
);
if
(
reportIdList
.
contains
(
reportId
)){
continue
;
}
reportIdList
.
add
(
reportId
);
ReturnNode
returnNode
=
new
ReturnNode
();
returnNode
.
setId
(
reportId
);
returnNode
.
setName
(
dataQualityRepost
.
get
(
"jobAnalyzer"
));
returnNode
.
setCnName
(
dataQualityRepost
.
get
(
"jobAnalyzer"
));
returnNode
.
setAttributeMaps
(
dataQualityRepost
);
qualityList
.
add
(
returnNode
);
}
}
catch
(
Exception
e
){
e
.
printStackTrace
();
}
sourceAndTargetTable
.
put
(
"质量"
,
qualityList
);
sourceAndTargetTable
.
put
(
"来源"
,
sourceTables
);
sourceAndTargetTable
.
put
(
"来源"
,
sourceTables
);
sourceAndTargetTable
.
put
(
"目标"
,
targetTables
);
sourceAndTargetTable
.
put
(
"目标"
,
targetTables
);
...
...
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