Commit dc6e49eb by qiuchaofei

对关系进行排序

parent e60aa06f
......@@ -563,7 +563,7 @@ public class MetadataServiceImpl implements IMetadataService {
Map<Long, ReturnNode> nodesMap = new HashMap<>();
Map<String, MetaModel> metaModelMap = new HashMap<>();
Map<String ,ReturnEdge> returnEdgeMap = new TreeMap<>();
Map<Integer ,ReturnEdge> returnEdgeMap = new TreeMap<>();
Map<String,String> colorMap = new HashMap<>();
while (statementResult.hasNext()) {
......@@ -595,7 +595,7 @@ public class MetadataServiceImpl implements IMetadataService {
}
private void getRelationFromneo4jRelationSystem(Map<String, ReturnEdge> returnEdgeMap, Map<Long, ReturnNode> nodesMap,
private void getRelationFromneo4jRelationSystem(Map<Integer, ReturnEdge> returnEdgeMap, Map<Long, ReturnNode> nodesMap,
Iterable<Relationship> relationships, Map<String, String> colorMap) {
for (Relationship relationship : relationships) {
......@@ -606,7 +606,11 @@ public class MetadataServiceImpl implements IMetadataService {
* asMap 相当于 节点的properties属性信息
*/
// relationship.id();
String xuhao =""+ relationship.asMap().get("序号");
Integer xuhao = 0;
String xuhaoStringg = ""+relationship.asMap().get("序号");
if(xuhaoStringg!=null){
xuhao = Integer.parseInt(xuhaoStringg);
}
String xieyi =""+ relationship.asMap().get("协议");
String yanse =""+ relationship.asMap().get("颜色");
String yewuleibie =""+ relationship.asMap().get("业务类别");
......
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