fix(测试跟踪): 缺陷平台筛选显示多个Jira

--bug=1020034 --user=陈建星 【测试跟踪】缺陷管理-平台-筛选框重复显示jira https://www.tapd.cn/55049933/s/1300808
This commit is contained in:
chenjianxing 2022-11-22 13:51:31 +08:00 committed by jianxing
parent 4ff72c0b7f
commit 6db72d197a
2 changed files with 6 additions and 2 deletions

View File

@ -248,7 +248,9 @@ public class PlatformPluginService {
integrations.stream() integrations.stream()
.filter(integration -> StringUtils.equals(integration.getPlatform(), option.getValue())) .filter(integration -> StringUtils.equals(integration.getPlatform(), option.getValue()))
.collect(Collectors.toList()).size() > 0 .collect(Collectors.toList()).size() > 0
).collect(Collectors.toList()); )
.distinct()
.collect(Collectors.toList());
} }
public List<String> getThirdPartTemplateSupportPlatform() { public List<String> getThirdPartTemplateSupportPlatform() {

View File

@ -130,6 +130,8 @@ public class PlatformPluginService {
integrations.stream() integrations.stream()
.filter(integration -> StringUtils.equals(integration.getPlatform(), option.getValue())) .filter(integration -> StringUtils.equals(integration.getPlatform(), option.getValue()))
.collect(Collectors.toList()).size() > 0 .collect(Collectors.toList()).size() > 0
).collect(Collectors.toList()); )
.distinct()
.collect(Collectors.toList());
} }
} }