fix(测试跟踪): 测试计划报告缺陷状态统计不准确
--bug=1017579 --user=陈建星 【测试跟踪】github#18335,测试计划内用例“添加缺陷”的缺陷状态统计不正确,“关联缺陷”的缺陷数量统计不正确 https://www.tapd.cn/55049933/s/1283110
This commit is contained in:
parent
e7c10682c1
commit
338d7efa72
|
@ -821,6 +821,7 @@ public class IssuesService {
|
||||||
|
|
||||||
public void calculatePlanReport(String planId, TestPlanSimpleReportDTO report) {
|
public void calculatePlanReport(String planId, TestPlanSimpleReportDTO report) {
|
||||||
List<PlanReportIssueDTO> planReportIssueDTOS = extIssuesMapper.selectForPlanReport(planId);
|
List<PlanReportIssueDTO> planReportIssueDTOS = extIssuesMapper.selectForPlanReport(planId);
|
||||||
|
planReportIssueDTOS = DistinctKeyUtil.distinctByKey(planReportIssueDTOS, PlanReportIssueDTO::getId);
|
||||||
TestPlanFunctionResultReportDTO functionResult = report.getFunctionResult();
|
TestPlanFunctionResultReportDTO functionResult = report.getFunctionResult();
|
||||||
List<TestCaseReportStatusResultDTO> statusResult = new ArrayList<>();
|
List<TestCaseReportStatusResultDTO> statusResult = new ArrayList<>();
|
||||||
Map<String, TestCaseReportStatusResultDTO> statusResultMap = new HashMap<>();
|
Map<String, TestCaseReportStatusResultDTO> statusResultMap = new HashMap<>();
|
||||||
|
|
Loading…
Reference in New Issue