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 493664a4cc..d8bdb1e30f 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 @@ -635,6 +635,7 @@ public class TestPlanReportService { * @param reportId 报告ID */ public void summaryGroupReport(String reportId) { + // TODO: 更新计划组的用例明细执行结果 TestPlanReportSummaryExample summaryExample = new TestPlanReportSummaryExample(); summaryExample.createCriteria().andTestPlanReportIdEqualTo(reportId); List testPlanReportSummaries = testPlanReportSummaryMapper.selectByExample(summaryExample); @@ -645,14 +646,14 @@ public class TestPlanReportService { TestPlanReportSummary groupSummary = testPlanReportSummaries.get(0); TestPlanReportExample example = new TestPlanReportExample(); - example.createCriteria().andParentIdEqualTo(reportId); + example.createCriteria().andParentIdEqualTo(reportId).andIntegratedEqualTo(false); List testPlanReports = testPlanReportMapper.selectByExample(example); if(CollectionUtils.isEmpty(testPlanReports)){ return; } List ids = testPlanReports.stream().map(TestPlanReport::getId).toList(); summaryExample.clear(); - summaryExample.createCriteria().andIdIn(ids); + summaryExample.createCriteria().andTestPlanReportIdIn(ids); List summaryList = testPlanReportSummaryMapper.selectByExampleWithBLOBs(summaryExample); List functionalCaseCountList = new ArrayList<>(); List apiCaseCountList = new ArrayList<>();