From 50182159891d05ac4a7d2b30df75ce34328aa01e Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Tue, 27 Dec 2022 17:58:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BF=9D=E7=95=99=E6=9C=80=E5=90=8E=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E6=B5=8B=E8=AF=95=E7=BB=93=E6=9E=9C=E5=B9=B6=E5=9B=9E?= =?UTF-8?q?=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --story=1010697 --user=赵勇 接口TEST保留最近一次测试记录 https://www.tapd.cn/55049933/s/1320069 --- .../ext/ExtApiDefinitionExecResultMapper.java | 5 --- .../ext/ExtApiDefinitionExecResultMapper.xml | 29 ------------- .../ApiDefinitionExecResultController.java | 13 +++--- .../ApiDefinitionExecResultService.java | 4 ++ .../frontend/src/api/definition-report.js | 15 +++++++ .../components/debug/DebugDubboPage.vue | 30 +------------ .../components/debug/DebugHttpPage.vue | 43 +------------------ .../components/debug/DebugJdbcPage.vue | 30 +------------ .../components/debug/DebugTcpPage.vue | 29 +------------ .../components/runtest/RunTestDubboPage.vue | 23 +--------- .../components/runtest/RunTestHTTPPage.vue | 13 +----- .../components/runtest/RunTestSQLPage.vue | 14 +----- .../components/runtest/RunTestTCPPage.vue | 21 +-------- 13 files changed, 40 insertions(+), 229 deletions(-) diff --git a/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.java b/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.java index aca1939e1a..7eef92ea16 100644 --- a/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.java +++ b/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.java @@ -24,11 +24,8 @@ public interface ExtApiDefinitionExecResultMapper { ApiDefinitionExecResultWithBLOBs selectMaxResultByResourceIdAndType(String resourceId, String type); - long countByProjectIDAndCreateInThisWeek(@Param("projectId") String projectId, @Param("version") String version, @Param("firstDayTimestamp") long firstDayTimestamp, @Param("lastDayTimestamp") long lastDayTimestamp); - long countByTestCaseIDInProject(String projectId); - List findFailureCaseInTestPlanByProjectIDAndExecuteTimeAndLimitNumber(@Param("projectId") String projectId, @Param("versionId") String version, @Param("selectFunctionCase") boolean selectFunctionCase, @Param("startTimestamp") long startTimestamp, @Param("limitNumber") int limitNumber); String selectExecResult(String resourceId); @@ -37,8 +34,6 @@ public interface ExtApiDefinitionExecResultMapper { List selectStatusByIdList(@Param("ids") Collection values); - List selectApiResultByProjectId(String projectId); - void update(@Param("ids") List ids); @InsertProvider(type = ExtApiDefinitionExecResultProvider.class, method = "insertListSql") diff --git a/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.xml b/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.xml index 9b4b43e499..ec6770564a 100644 --- a/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.xml +++ b/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.xml @@ -33,22 +33,6 @@ AND create_time BETWEEN #{firstDayTimestamp} AND #{lastDayTimestamp} - - -