fix(测试跟踪): 功能用例关联性能测试弹窗数据查询不对

--bug=1034443 --user=宋昌昌 【测试跟踪】功能用例-关联性能用例-高级搜索-创建人属于a-查询结果和性能列表数据不一致 https://www.tapd.cn/55049933/s/1629194
This commit is contained in:
song-cc-rock 2024-12-11 18:11:37 +08:00 committed by Craftsman
parent 28bf181a8d
commit 7fc99c2f63
3 changed files with 7 additions and 3 deletions

View File

@ -151,9 +151,9 @@
FROM load_test
LEFT JOIN project ON load_test.project_id = project.id
LEFT JOIN user ON load_test.user_id = user.id
LEFT JOIN project_version on project.id = project_version.project_id AND project_version.id =
load_test.version_id
LEFT JOIN project_version on project.id = project_version.project_id AND project_version.id = load_test.version_id
<where>
(load_test.status is null or load_test.status != 'Trash')
<if test="request.combine != null">
<include refid="combine">
<property name="condition" value="request.combine"/>
@ -192,7 +192,7 @@
</foreach>
</when>
<when test="key == 'user_id'">
AND load_test.user_id IN
AND load_test.create_user IN
<foreach collection="values" item="value" separator="," open="(" close=")">
#{value}
</foreach>

View File

@ -82,10 +82,12 @@ import {TEST_CASE_RELEVANCE_LOAD_CASE} from "metersphere-frontend/src/components
import MxVersionSelect from "metersphere-frontend/src/components/version/MxVersionSelect";
import {getVersionFilters} from "@/business/utils/sdk-utils";
import {getTestCaseRelevanceLoadList} from "@/api/testCase";
import MsPerformanceTestStatus from "@/business/performance/PerformanceTestStatus.vue";
export default {
name: "TestCaseRelateLoadList",
components: {
MsPerformanceTestStatus,
MsTablePagination,
MsTable,
MsTableColumn,

View File

@ -109,10 +109,12 @@ import MxVersionSelect from "metersphere-frontend/src/components/version/MxVersi
import { getVersionFilters } from "@/business/utils/sdk-utils";
import { getTestCaseRelevanceLoadList } from "@/api/testCase";
import {getCurrentProjectID} from "metersphere-frontend/src/utils/token";
import MsPerformanceTestStatus from "@/business/performance/PerformanceTestStatus.vue";
export default {
name: "CaseRelateLoadList",
components: {
MsPerformanceTestStatus,
MsTablePagination,
MsTable,
MsTableColumn,