From 3b42857fd7b809d2dd8da1dca9e466b2a9fed02e Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 20 Oct 2021 14:45:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E6=97=B6=E5=88=A0=E9=99=A4=E5=85=B3=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/api/service/ApiDefinitionService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java index 388262b5b3..370314fd5e 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java @@ -264,6 +264,7 @@ public class ApiDefinitionService { esbApiParamService.deleteByResourceId(apiId); MockConfigService mockConfigService = CommonBeanFactory.getBean(MockConfigService.class); mockConfigService.deleteMockConfigByApiId(apiId); + relationshipEdgeService.delete(apiId); // 删除关系图 FileUtils.deleteBodyFiles(apiId); } @@ -274,6 +275,7 @@ public class ApiDefinitionService { apiDefinitionMapper.deleteByExample(example); apiTestCaseService.deleteBatchByDefinitionId(apiIds); MockConfigService mockConfigService = CommonBeanFactory.getBean(MockConfigService.class); + relationshipEdgeService.delete(apiIds); // 删除关系图 for (String apiId : apiIds) { mockConfigService.deleteMockConfigByApiId(apiId); }