Commit bc7c3367 by qiuchaofei

关系添加属性:“颜色”

parent b88c8fd5
......@@ -144,7 +144,9 @@ public class DataRelationAnalyController {
filePath = "D:\\dev\\neo4j-community-3.3.5\\systemRelation.xlsx";
}
return excel2Neo4jService.generalRelationFromExcel(filePath) ;
excel2Neo4jService.generalRelationFromExcel(filePath) ;
logger.info("从excel生成neo4j的节点与关系完成。" );
return "";
}
}
......@@ -564,7 +564,6 @@ public class MetadataServiceImpl implements IMetadataService {
Map<String ,ReturnEdge> returnEdgeMap = new HashMap<>();
int size = 300;
while (statementResult.hasNext()) {
Record record = statementResult.next();
List<Value> values = record.values();
......@@ -606,6 +605,7 @@ public class MetadataServiceImpl implements IMetadataService {
// relationship.id();
//
String xieyi =""+ relationship.asMap().get("协议");
String yanse =""+ relationship.asMap().get("颜色");
String yewuleibie =""+ relationship.asMap().get("业务类别");
String shujujiegou =""+ relationship.asMap().get("数据结构");
String yewushuoming =""+ relationship.asMap().get("业务说明");
......@@ -630,6 +630,7 @@ public class MetadataServiceImpl implements IMetadataService {
edge.getAttributeMaps().put("业务类别",yewuleibie);
edge.getAttributeMaps().put("数据结构",shujujiegou);
edge.getAttributeMaps().put("业务说明",yewushuoming);
edge.getAttributeMaps().put("颜色",yanse);
returnEdgeMap .put(edgeId,edge );
}
......@@ -1384,6 +1385,9 @@ public class MetadataServiceImpl implements IMetadataService {
while (tableCursor.hasNext()) {
Document tableDocument = tableCursor.next();
String tableId =(String) tableDocument.get("_id");
if("Table=1=0c0553306fd24e34897a172338ccb38f".equals(tableId)){
System.out.println("Table=1=4e048d23a0c0477e9f67792b34e51df7");
}
//存在了,就不写入
if(tableIdMapFromNeo4j.containsKey(tableId)){
tableIdMapFromNeo4j.remove(tableId);
......
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