diff --git a/backend/src/main/java/io/metersphere/api/service/APIReportService.java b/backend/src/main/java/io/metersphere/api/service/APIReportService.java index 03a7dd495a..86ed339a3a 100644 --- a/backend/src/main/java/io/metersphere/api/service/APIReportService.java +++ b/backend/src/main/java/io/metersphere/api/service/APIReportService.java @@ -34,7 +34,6 @@ public class APIReportService { } public List recentTest(QueryAPIReportRequest request) { - request.setRecent(true); return extApiTestReportMapper.list(request); } diff --git a/backend/src/main/java/io/metersphere/api/service/APITestService.java b/backend/src/main/java/io/metersphere/api/service/APITestService.java index 5637aefb5c..db74c6e823 100644 --- a/backend/src/main/java/io/metersphere/api/service/APITestService.java +++ b/backend/src/main/java/io/metersphere/api/service/APITestService.java @@ -45,7 +45,6 @@ public class APITestService { } public List recentTest(QueryAPITestRequest request) { - request.setRecent(true); return extApiTestMapper.list(request); } diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestMapper.xml index 45181c536b..411076e3d1 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestMapper.xml @@ -25,9 +25,7 @@ AND api_test.id = #{request.id} - - order by api_test.update_time desc - + order by api_test.update_time desc \ No newline at end of file diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestReportMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestReportMapper.xml index e518f862c8..796e05f441 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestReportMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestReportMapper.xml @@ -25,9 +25,7 @@ AND project.workspace_id = #{request.workspaceId,jdbcType=VARCHAR} - - ORDER BY r.update_time DESC - + ORDER BY r.update_time DESC