From 1619f0188212fcb8b3436ad8ba623f0fcb6497ce Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Tue, 17 Dec 2024 15:31:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B7=A5=E4=BD=9C=E5=8F=B0):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=AE=A1=E5=88=92=E6=A6=82=E8=A7=88=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E4=B8=8B=E6=8B=89=E6=95=B0=E6=8D=AE=E5=8C=85?= =?UTF-8?q?=E5=90=AB=E5=BD=92=E6=A1=A3=E6=95=B0=E6=8D=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1050536 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001050536 --- .../java/io/metersphere/dashboard/service/DashboardService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardService.java b/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardService.java index 4937411892..b59d944bc1 100644 --- a/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardService.java +++ b/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardService.java @@ -1827,7 +1827,7 @@ public class DashboardService { List cascadeDTOList = new ArrayList<>(); List groupAndPlanInfo = extTestPlanMapper.getGroupAndPlanInfo(projectId); TestPlanExample testPlanExample = new TestPlanExample(); - testPlanExample.createCriteria().andProjectIdEqualTo(projectId).andTypeEqualTo(TestPlanConstants.TEST_PLAN_TYPE_PLAN).andGroupIdEqualTo(NONE); + testPlanExample.createCriteria().andProjectIdEqualTo(projectId).andTypeEqualTo(TestPlanConstants.TEST_PLAN_TYPE_PLAN).andGroupIdEqualTo(NONE).andStatusEqualTo(TestPlanConstants.TEST_PLAN_STATUS_NOT_ARCHIVED); testPlanExample.setOrderByClause(" create_time DESC "); List testPlans = testPlanMapper.selectByExample(testPlanExample); Map> groupMap = groupAndPlanInfo.stream().sorted(Comparator.comparing(TestPlanAndGroupInfoDTO::getGroupCreateTime).reversed()).collect(Collectors.groupingBy(TestPlanAndGroupInfoDTO::getGroupId));