From 71e43e434126a8e63d14af6d054bddd8df1091db Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Tue, 22 Nov 2022 13:51:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E7=BC=BA=E9=99=B7=E5=B9=B3=E5=8F=B0=E7=AD=9B=E9=80=89=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=A4=9A=E4=B8=AAJira?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1020034 --user=陈建星 【测试跟踪】缺陷管理-平台-筛选框重复显示jira https://www.tapd.cn/55049933/s/1300808 --- .../java/io/metersphere/service/PlatformPluginService.java | 4 +++- .../java/io/metersphere/service/PlatformPluginService.java | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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()); } }