Commit 9cecd572 by qiuchaofei

1.用序号做key值

parent 11ec18b0
......@@ -44,6 +44,7 @@ public class DataRelationAnalyServiceImpl implements DataRelationAnalyService {
}else if(parentId !=null){
cypher = "match (n:Neo4jTable{isEnvironment:\""+parentId+"\"}) where not ((n)-[:`流向`]-()) return n order by n.name SKIP "+start+" LIMIT "+end+" ";
}
int count = 0;
logger .info("查找孤立表的语句:"+cypher);
StatementResult result = session.run(cypher);
while(result.hasNext()){
......@@ -64,7 +65,7 @@ public class DataRelationAnalyServiceImpl implements DataRelationAnalyService {
returnNode.setId(metaData.getMetadataId());
returnNode.setType(metaData.getMetaModel());
returnNode.setCnName(metaData.getCnName());
returnNodeMap.put(metaData.getMetadataId(),returnNode);
returnNodeMap.put(""+count++,returnNode);
}
}
}
......
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