diff --git a/system-setting/backend/src/main/java/io/metersphere/service/PlatformPluginService.java b/system-setting/backend/src/main/java/io/metersphere/service/PlatformPluginService.java index 7e379625a9..7cdf4df7c1 100644 --- a/system-setting/backend/src/main/java/io/metersphere/service/PlatformPluginService.java +++ b/system-setting/backend/src/main/java/io/metersphere/service/PlatformPluginService.java @@ -248,7 +248,9 @@ public class PlatformPluginService { integrations.stream() .filter(integration -> StringUtils.equals(integration.getPlatform(), option.getValue())) .collect(Collectors.toList()).size() > 0 - ).collect(Collectors.toList()); + ) + .distinct() + .collect(Collectors.toList()); } public List getThirdPartTemplateSupportPlatform() { diff --git a/test-track/backend/src/main/java/io/metersphere/service/PlatformPluginService.java b/test-track/backend/src/main/java/io/metersphere/service/PlatformPluginService.java index 9fd8032a0f..0d127abe74 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/PlatformPluginService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/PlatformPluginService.java @@ -130,6 +130,8 @@ public class PlatformPluginService { integrations.stream() .filter(integration -> StringUtils.equals(integration.getPlatform(), option.getValue())) .collect(Collectors.toList()).size() > 0 - ).collect(Collectors.toList()); + ) + .distinct() + .collect(Collectors.toList()); } }