From 516f2127d2405b8cf9011a8fc98bd93ab6e1dd07 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Wed, 11 Sep 2024 11:28:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):?= =?UTF-8?q?=20=E4=BC=98=E5=8C=96=E8=AE=A1=E5=88=92=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=86=85=E5=AE=B9=E5=88=86=E9=A1=B5=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metersphere/plan/controller/TestPlanReportController.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanReportController.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanReportController.java index c303529f60..b72f2b7760 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanReportController.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanReportController.java @@ -148,6 +148,7 @@ public class TestPlanReportController { StringUtils.isNotBlank(request.getSortString()) ? request.getSortString() : "tprb.bug_num, tprb.id desc"); if (!request.getStartPager()) { page.close(); + page.setOrderBy("tprb.bug_num, tprb.id desc"); } return PageUtils.setPageInfo(page, testPlanReportService.listReportDetailBugs(request)); } @@ -161,6 +162,7 @@ public class TestPlanReportController { StringUtils.isNotBlank(request.getSortString()) ? request.getSortString() : "tprfc.pos desc"); if (!request.getStartPager()) { page.close(); + page.setOrderBy("tprfc.pos desc"); } return PageUtils.setPageInfo(page, testPlanReportService.listReportDetailCases(request, AssociateCaseType.FUNCTIONAL)); } @@ -181,6 +183,7 @@ public class TestPlanReportController { StringUtils.isNotBlank(request.getSortString()) ? request.getSortString() : "tprac.pos desc"); if (!request.getStartPager()) { page.close(); + page.setOrderBy("tprac.pos desc"); } return PageUtils.setPageInfo(page, testPlanReportService.listReportDetailCases(request, AssociateCaseType.API_CASE)); } @@ -194,6 +197,7 @@ public class TestPlanReportController { StringUtils.isNotBlank(request.getSortString()) ? request.getSortString() : "tpras.pos desc"); if (!request.getStartPager()) { page.close(); + page.setOrderBy("tpras.pos desc"); } return PageUtils.setPageInfo(page, testPlanReportService.listReportDetailCases(request, AssociateCaseType.API_SCENARIO)); }