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