fix(任务中心): 修复计划组创建定时任务不显示定时标签问题

This commit is contained in:
WangXu10 2024-10-30 16:36:08 +08:00 committed by 刘瑞斌
parent f99ff9a304
commit 2611efb162
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public class TestPlanStatisticsService {
private Map<String, Schedule> selectSchedule(List<String> testPlanIds) { private Map<String, Schedule> selectSchedule(List<String> testPlanIds) {
ScheduleExample scheduleExample = new ScheduleExample(); 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<Schedule> schedules = scheduleMapper.selectByExample(scheduleExample); List<Schedule> schedules = scheduleMapper.selectByExample(scheduleExample);
return schedules.stream().collect(Collectors.toMap(Schedule::getResourceId, t -> t)); return schedules.stream().collect(Collectors.toMap(Schedule::getResourceId, t -> t));
} }