|
|
|
@ -69,7 +69,6 @@ public class GraphApiController extends BaseController { |
|
|
|
@PostMapping(value = "/getDomainGraphTest") |
|
|
|
public AjaxResult getDomainGraphTest(@RequestBody GraphQuery query) { |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
HashMap<String, Object> graphData = new HashMap<>(); |
|
|
|
if (StringUtils.isNotEmpty(query.getDomain())) { |
|
|
|
@ -78,8 +77,6 @@ public class GraphApiController extends BaseController { |
|
|
|
graphData = graphService.getGraphDataInfo(query); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return AjaxResult.success(graphData); |
|
|
|
} catch (Exception e) { |
|
|
|
return AjaxResult.error("查询图节点和关系异常"); |
|
|
|
@ -579,7 +576,7 @@ public class GraphApiController extends BaseController { |
|
|
|
System.out.println("chjbcsbchabhc"); |
|
|
|
|
|
|
|
|
|
|
|
String sql1 = "MATCH (n:Doc) -[r]->(m:Doc) where n.docId='"+pa.getId()+"' return n,m,r"; |
|
|
|
String sql1 = "MATCH (n:Local) -[r]->(m:Local) where n.docId='"+pa.getId()+"' return n,m,r"; |
|
|
|
System.out.println(sql1); |
|
|
|
HashMap<String, Object> graphNode = neo4jUtil.getGraphNodeAndShip(sql1); |
|
|
|
Object node1 = graphNode.get("node"); |
|
|
|
@ -588,7 +585,7 @@ public class GraphApiController extends BaseController { |
|
|
|
List<Map> kk1 = (List<Map>) node1; |
|
|
|
List<Map> rrk1 = (List<Map>) graphNode.get("relationship"); |
|
|
|
|
|
|
|
String sql2 = "MATCH (n:Doc) -[r]->(m:Doc) where n.docId='"+pa1.getId()+"' return n,m,r"; |
|
|
|
String sql2 = "MATCH (n:Local) -[r]->(m:Local) where n.docId='"+pa1.getId()+"' return n,m,r"; |
|
|
|
System.out.println(sql2); |
|
|
|
|
|
|
|
HashMap<String, Object> graphNode1 = neo4jUtil.getGraphNodeAndShip(sql2); |
|
|
|
@ -635,7 +632,7 @@ public class GraphApiController extends BaseController { |
|
|
|
rr1.setSource(pa.getId()); |
|
|
|
|
|
|
|
|
|
|
|
String sql1 = "MATCH (n:Doc) -[r]->(m:Doc) where n.docId='"+pa.getId()+"' return n,m,r"; |
|
|
|
String sql1 = "MATCH (n:Local) -[r]->(m:Local) where n.docId='"+pa.getId()+"' return n,m,r"; |
|
|
|
System.out.println("idgjjfdsj--------"); |
|
|
|
System.out.println(sql1); |
|
|
|
HashMap<String, Object> graphNode = neo4jUtil.getGraphNodeAndShip(sql1); |
|
|
|
@ -688,7 +685,7 @@ public class GraphApiController extends BaseController { |
|
|
|
|
|
|
|
} |
|
|
|
if(aa.getDocLevel()==1){ |
|
|
|
String sql1 = "MATCH (n:Doc) -[r]->(m:Doc) where n.docId='"+aa.getId()+"' return n,m,r"; |
|
|
|
String sql1 = "MATCH (n:Local) -[r]->(m:Local) where n.docId='"+aa.getId()+"' return n,m,r"; |
|
|
|
System.out.println("idgjjfdsj--------"); |
|
|
|
System.out.println(sql1); |
|
|
|
HashMap<String, Object> graphNode = neo4jUtil.getGraphNodeAndShip(sql1); |
|
|
|
|