fix(测试跟踪): 测试计划报告场景合并时增加去重处理

--bug=1026747 --user=宋天阳 [测试跟踪]github#24821测试跟踪-报告--运行数据显示超多环境数据
https://www.tapd.cn/55049933/s/1379616
This commit is contained in:
song-tianyang 2023-06-07 16:51:32 +08:00 committed by fit2-zhao
parent 105f047876
commit 65fad0623e
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ public class TestPlanReportUtil {
originProjectEnvMap.entrySet().forEach(e -> {
if (r.containsKey(e.getKey())) {
r.get(e.getKey()).add(e.getValue());
r.put(e.getKey(), r.get(e.getKey()).stream().distinct().collect(Collectors.toList()));
} else {
r.put(e.getKey(), new ArrayList<>() {{
this.add(e.getValue());