2 Commits 90b2db21f5 ... 6c43955ac3

Auteur SHA1 Message Date
  liyang 6c43955ac3 Merge remote-tracking branch 'origin/develop' into develop il y a 2 ans
  liyang 49a9a3937d feat(adm-diagram): 恢复系统实例参数 il y a 2 ans

+ 3 - 2
adm-business/adm-diagram/src/main/java/com/persagy/adm/diagram/controller/DiagramController.java

@@ -65,17 +65,18 @@ public class DiagramController {
     /**
      * 提供给APM的系统图列表接口
      *
+     * @param diagram 请求参数
      * @return 系统图列表
      */
     @ApiOperation("提供给APM的系统图列表接口")
     @PostMapping("/apm/getDiagrams")
-    public String getDiagramsForApm() {
+    public String getDiagramsForApm(@RequestBody Map<String, Object> diagram) {
         BdtpRequest current = BdtpRequest.getCurrent();
         String groupCode = current.getGroupCode();
         String projectId = current.getProjectId();
 
         List<Diagram> diagramList = dataStrategy.getDiagrams(null, projectId,
-                null, groupCode, null, false);
+                (String) diagram.get("systemId"), groupCode, null, false);
 
         return diagramManager.json4View(ResultHelper.multi(diagramList));
     }