From 5eacee9045c899466b166e197b94f621772a4c3d Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Fri, 19 Aug 2022 14:18:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=88=91=E7=9A=84=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E5=8F=B0):=20=E6=88=91=E7=9A=84=E4=BB=AA=E8=A1=A8=E7=9B=98?= =?UTF-8?q?=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 --user=郭雨琦 --- .../base/mapper/ext/ExtApiTestCaseMapper.xml | 145 +++++++++++------- .../service/WorkstationService.java | 27 ++-- 2 files changed, 111 insertions(+), 61 deletions(-) diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml index b3d992a8ea..7faee62b43 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml @@ -77,11 +77,12 @@ - id, project_id, name,api_definition_id,priority,description, create_user_id, update_user_id, create_time, update_time - + id + , project_id, name,api_definition_id,priority,description, create_user_id, update_user_id, create_time, update_time + - request - + request + - SELECT - t1.*, - a.method AS apiMethod, project_version.name as version_name, project.version_enable - FROM - api_test_case t1 - inner join api_definition a on t1.api_definition_id = a.id - LEFT JOIN project_version on a.project_id = project_version.project_id AND project_version.id = t1.version_id - LEFT JOIN project on a.project_id = project.id + SELECT t1.*, + a.method AS apiMethod, + project_version.name as version_name, + project.version_enable + FROM api_test_case t1 + inner join api_definition a on t1.api_definition_id = a.id + LEFT JOIN project_version + on a.project_id = project_version.project_id AND project_version.id = t1.version_id + LEFT JOIN project on a.project_id = project.id WHERE t1.id = #{0} @@ -314,25 +316,25 @@ @@ -754,10 +770,14 @@