Commit bfc204a6 by qiuchaofei

全链分析图添加质量报告

parent 8ae31754
......@@ -330,6 +330,39 @@ public class TableServiceImpl implements ITableService {
List<ReturnNode> targetTables = new ArrayList<>();
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("目标",targetTables);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment