fix(测试跟踪): 测试计划报告缺陷状态统计不准确

--bug=1017579 --user=陈建星 【测试跟踪】github#18335,测试计划内用例“添加缺陷”的缺陷状态统计不正确,“关联缺陷”的缺陷数量统计不正确 https://www.tapd.cn/55049933/s/1283110
This commit is contained in:
chenjianxing 2022-10-31 11:19:42 +08:00 committed by 刘瑞斌
parent e7c10682c1
commit 338d7efa72

View File

@ -821,6 +821,7 @@ public class IssuesService {
public void calculatePlanReport(String planId, TestPlanSimpleReportDTO report) {
List<PlanReportIssueDTO> planReportIssueDTOS = extIssuesMapper.selectForPlanReport(planId);
planReportIssueDTOS = DistinctKeyUtil.distinctByKey(planReportIssueDTOS, PlanReportIssueDTO::getId);
TestPlanFunctionResultReportDTO functionResult = report.getFunctionResult();
List<TestCaseReportStatusResultDTO> statusResult = new ArrayList<>();
Map<String, TestCaseReportStatusResultDTO> statusResultMap = new HashMap<>();