From 2611efb162853c5a9878a48c1a1758e766927778 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Wed, 30 Oct 2024 16:36:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=BB=E5=8A=A1=E4=B8=AD=E5=BF=83):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=A1=E5=88=92=E7=BB=84=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E6=A0=87=E7=AD=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/plan/service/TestPlanStatisticsService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanStatisticsService.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanStatisticsService.java index b34cc059d7..b72d5f4f24 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanStatisticsService.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanStatisticsService.java @@ -83,7 +83,7 @@ public class TestPlanStatisticsService { private Map selectSchedule(List testPlanIds) { ScheduleExample scheduleExample = new ScheduleExample(); - scheduleExample.createCriteria().andResourceIdIn(testPlanIds).andResourceTypeEqualTo(ScheduleResourceType.TEST_PLAN.name()); + scheduleExample.createCriteria().andResourceIdIn(testPlanIds).andResourceTypeIn(List.of(ScheduleResourceType.TEST_PLAN.name(), ScheduleResourceType.TEST_PLAN_GROUP.name())); List schedules = scheduleMapper.selectByExample(scheduleExample); return schedules.stream().collect(Collectors.toMap(Schedule::getResourceId, t -> t)); }