From 4cfb2e38ad4102d89a7ab3c5174de2133dbbfbee Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Fri, 29 Oct 2021 18:52:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=BE=E8=A1=A8=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metersphere/base/mapper/ext/ExtApiScenarioMapper.xml | 3 ++- .../metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml | 6 +++++- .../io/metersphere/base/mapper/ext/ExtIssuesMapper.xml | 3 ++- .../io/metersphere/base/mapper/ext/ExtLoadTestMapper.xml | 6 +++++- .../io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml | 5 +++-- .../java/io/metersphere/service/WorkstationService.java | 4 ++++ frontend/src/business/components/track/case/TestCase.vue | 7 ++++++- 7 files changed, 27 insertions(+), 7 deletions(-) diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioMapper.xml index b7763bd7af..2c06341d84 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioMapper.xml @@ -141,7 +141,8 @@ 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 34e3709f31..3b29a34979 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 @@ -540,7 +540,8 @@ @@ -687,6 +688,9 @@ + + AND project.workspace_id = #{request.workspaceId} + diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml index 30c4e39615..1da15e66de 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml @@ -30,7 +30,8 @@ SELECT * FROM issues WHERE issues.project_id = #{projectId} ORDER BY num DESC LIMIT 1; diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtLoadTestMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtLoadTestMapper.xml index 4b4f096a81..fe38378844 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtLoadTestMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtLoadTestMapper.xml @@ -193,7 +193,8 @@ diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml index 5668169fe6..3aab85d7f2 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml @@ -185,7 +185,8 @@ @@ -289,7 +290,7 @@