From 0914fedb6fdcc55c2f819434187fe6563207ed44 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 25 Jan 2022 14:04:14 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=96=B0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=97=B6=E6=8C=87=E5=AE=9A=E7=B4=A2=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/base/mapper/ext/ExtApiDefinitionMapper.xml | 1 + .../io/metersphere/base/mapper/ext/ExtApiScenarioMapper.xml | 1 + .../java/io/metersphere/base/mapper/ext/ExtLoadTestMapper.xml | 1 + .../java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml | 1 + backend/src/main/java/io/metersphere/xpack | 2 +- 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionMapper.xml index c0ae5e168d..5a66f56b8d 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionMapper.xml @@ -914,6 +914,7 @@ ORDER BY tmp.update_time DESC LIMIT 1)) AS t ON api_definition.id = t.id SET api_definition.latest = TRUE + WHERE ref_id = #{refId,jdbcType=VARCHAR} 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 35b5632f0b..33877ec0b2 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 @@ -319,6 +319,7 @@ ORDER BY tmp.update_time DESC LIMIT 1)) AS t ON load_test.id = t.id SET load_test.latest = TRUE + WHERE ref_id = #{refId,jdbcType=VARCHAR} 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 bf5b9ea751..1b537e5b56 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 @@ -1025,5 +1025,6 @@ LIMIT 1)) AS t ON test_case.id = t.id SET test_case.latest = TRUE + WHERE ref_id = #{refId,jdbcType=VARCHAR} diff --git a/backend/src/main/java/io/metersphere/xpack b/backend/src/main/java/io/metersphere/xpack index 0ff05a37a8..6b1d5c60af 160000 --- a/backend/src/main/java/io/metersphere/xpack +++ b/backend/src/main/java/io/metersphere/xpack @@ -1 +1 @@ -Subproject commit 0ff05a37a89b8ecaf4491d35d7cebb05dc5169dc +Subproject commit 6b1d5c60afcbd8c5c6c1098bca95370eb4ce85c1