diff --git a/api-test/backend/src/main/java/io/metersphere/service/definition/ApiDefinitionService.java b/api-test/backend/src/main/java/io/metersphere/service/definition/ApiDefinitionService.java index e6606375ae..dfb80c4045 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/definition/ApiDefinitionService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/definition/ApiDefinitionService.java @@ -2999,8 +2999,6 @@ public class ApiDefinitionService { } } } - - return returnMap; } diff --git a/api-test/backend/src/main/java/io/metersphere/service/plan/TestPlanApiCaseService.java b/api-test/backend/src/main/java/io/metersphere/service/plan/TestPlanApiCaseService.java index ed8a3b1a8c..eac885ecfc 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/plan/TestPlanApiCaseService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/plan/TestPlanApiCaseService.java @@ -520,7 +520,7 @@ public class TestPlanApiCaseService { }}); } }); - Map> projectEnvMap = apiDefinitionService.getProjectEnvNameByEnvConfig(projectConfigMap); + result = apiDefinitionService.getProjectEnvNameByEnvConfig(projectConfigMap); } return result; }