From 90ae8efacd16a042c0ab7ec89387bfc317b019d8 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Mon, 23 Sep 2024 14:29:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E8=87=AA=E5=AE=9A=E4=B9=89=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=E7=BC=BA=E9=99=B7=E6=80=BB=E6=95=B0=E6=9C=AA=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1046948 --user=宋昌昌 【测试计划】计划自定义生成报告-缺陷总数未统计 https://www.tapd.cn/55049933/s/1583613 --- .../metersphere/functional/service/DeleteCaseReviewService.java | 2 +- .../java/io/metersphere/plan/service/TestPlanReportService.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/DeleteCaseReviewService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/DeleteCaseReviewService.java index 88d5233af5..cde5411932 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/DeleteCaseReviewService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/DeleteCaseReviewService.java @@ -63,7 +63,7 @@ public class DeleteCaseReviewService { caseReviewExample.createCriteria().andIdIn(ids).andProjectIdEqualTo(projectId); caseReviewMapper.deleteByExample(caseReviewExample); - // 7. 批量刷新评审中其他用例的评审状态 + // 7. 批量刷新评审中所有用例的评审状态 Map> reviewFunctionalCaseMap = reviewFunctionalCases.stream().collect(Collectors.groupingBy(CaseReviewFunctionalCase::getReviewId)); reviewFunctionalCaseMap.forEach((reviewId, reviewFunctionalCaseList) -> caseReviewCaseProvider.refreshReviewCaseStatus(reviewFunctionalCaseList)); } diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanReportService.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanReportService.java index 1cad84e7fa..4f6c64aca7 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanReportService.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanReportService.java @@ -577,6 +577,7 @@ public class TestPlanReportService { return; } List reportBugs = extTestPlanReportBugMapper.getPlanBugs(genParam.getTestPlanId(), subList); + bugCount.addAndGet(reportBugs.size()); // MS处理人会与第三方的值冲突, 分开查询 List headerOptions = bugCommonService.getHeaderHandlerOption(genParam.getProjectId()); Map headerHandleUserMap = headerOptions.stream().collect(Collectors.toMap(SelectOption::getValue, SelectOption::getText));