Commit fc603755 authored by gaozhentao's avatar gaozhentao

1

parent 770f3f19
...@@ -403,6 +403,7 @@ public class Manager { ...@@ -403,6 +403,7 @@ public class Manager {
for(FlowNode node : flowNodes){ for(FlowNode node : flowNodes){
TcpFlowNodeDto nodeDto = new TcpFlowNodeDto(); TcpFlowNodeDto nodeDto = new TcpFlowNodeDto();
long faultCount=0; long faultCount=0;
try { try {
faultCount = getFaultCount(node.getServerPath()); faultCount = getFaultCount(node.getServerPath());
if(faultCount>0){ if(faultCount>0){
...@@ -433,8 +434,14 @@ public class Manager { ...@@ -433,8 +434,14 @@ public class Manager {
String point = line.getPoints(); String point = line.getPoints();
if(point!=null && point.length()>0){ if(point!=null && point.length()>0){
point = point.substring(1,point.length()-2); point = point.substring(1,point.length()-2);
List points = Arrays.asList(point.split(",")); point = point.replaceAll("\\\\", "");
lineDto.setPoints(points); point = point.replaceAll("\"", "");
List list = new ArrayList();
String [] mapArray = point.split(",");
for (int j = 0; j < mapArray.length; j++) {
list.add(Double.valueOf(mapArray[j]));
}
lineDto.setPoints(list);
}else{ }else{
lineDto.setPoints(null); lineDto.setPoints(null);
} }
......
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