fix(测试计划): 计划自定义报告缺陷总数未统计

--bug=1046948 --user=宋昌昌 【测试计划】计划自定义生成报告-缺陷总数未统计 https://www.tapd.cn/55049933/s/1583613
This commit is contained in:
song-cc-rock 2024-09-23 14:29:19 +08:00 committed by Craftsman
parent c8bad6d1d6
commit 90ae8efacd
2 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,7 @@ public class DeleteCaseReviewService {
caseReviewExample.createCriteria().andIdIn(ids).andProjectIdEqualTo(projectId);
caseReviewMapper.deleteByExample(caseReviewExample);
// 7. 批量刷新评审中其他用例的评审状态
// 7. 批量刷新评审中所有用例的评审状态
Map<String, List<CaseReviewFunctionalCase>> reviewFunctionalCaseMap = reviewFunctionalCases.stream().collect(Collectors.groupingBy(CaseReviewFunctionalCase::getReviewId));
reviewFunctionalCaseMap.forEach((reviewId, reviewFunctionalCaseList) -> caseReviewCaseProvider.refreshReviewCaseStatus(reviewFunctionalCaseList));
}

View File

@ -577,6 +577,7 @@ public class TestPlanReportService {
return;
}
List<TestPlanReportBug> reportBugs = extTestPlanReportBugMapper.getPlanBugs(genParam.getTestPlanId(), subList);
bugCount.addAndGet(reportBugs.size());
// MS处理人会与第三方的值冲突, 分开查询
List<SelectOption> headerOptions = bugCommonService.getHeaderHandlerOption(genParam.getProjectId());
Map<String, String> headerHandleUserMap = headerOptions.stream().collect(Collectors.toMap(SelectOption::getValue, SelectOption::getText));