Browse Source

apm系统图列表接口

zhaoyk 3 years ago
parent
commit
c66c848aeb

+ 6 - 0
adm-business/adm-diagram/src/main/java/com/persagy/adm/diagram/controller/DiagramController.java

@@ -77,6 +77,12 @@ public class DiagramController {
 
         List<Diagram> diagramList = dataStrategy.getDiagrams(null, projectId,
                 (String) diagram.get("systemId"), groupCode, null, false);
+        if (diagramList != null) { //TODO 批量处理会导致接口响应慢,优化为列表和内容拆分的方式
+            diagramList.forEach(d -> {
+                diagramManager.buildDiagram(d);
+                d.toAbsoluteLocation();
+            });
+        }
 
         return diagramManager.json4View(ResultHelper.multi(diagramList));
     }