fix(工作台): 待办计划筛选问题

This commit is contained in:
song-cc-rock 2024-11-26 11:15:39 +08:00 committed by 刘瑞斌
parent 407088f34c
commit c99485b9a7
1 changed files with 3 additions and 0 deletions

View File

@ -364,6 +364,9 @@ public class TestPlanManagementService {
childPlans = testPlanMapper.selectByExample(example);
}
calculateIds.addAll(childPlans.stream().map(TestPlan::getId).toList());
if (CollectionUtils.isEmpty(calculateIds)) {
return null;
}
List<TestPlanStatisticsResponse> calcPlans = testPlanStatisticsService.calculateRate(calculateIds);
calcPlans.forEach(plan -> {
// 筛选出已完成的计划 && 子计划且通过率达到阈值