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 3b419883f8..91b0503ac6 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 @@ -173,10 +173,10 @@ public class TestPlanReportController { public Pager> pageBug(@Validated @RequestBody TestPlanReportDetailPageRequest request) { request.setDetailReportIds(testPlanReportService.getActualReportIds(request.getReportId())); Page page = PageHelper.startPage(request.getCurrent(), request.getPageSize(), - StringUtils.isNotBlank(request.getSortString()) ? request.getSortString() : "tprb.bug_num, tprb.id desc"); + StringUtils.isNotBlank(request.getSortString()) ? request.getSortString() : "tprb.bug_num desc"); if (!request.getStartPager()) { page.close(); - page.setOrderBy("tprb.bug_num, tprb.id desc"); + page.setOrderBy("tprb.bug_num desc"); } return PageUtils.setPageInfo(page, testPlanReportService.listReportDetailBugs(request)); } diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanReportBugMapper.xml b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanReportBugMapper.xml index e8260459c0..c17c3428bf 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanReportBugMapper.xml +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanReportBugMapper.xml @@ -24,7 +24,7 @@