fix(接口测试): 场景查看引用,没显示测试计划引用

--bug=1008115 --user=王孝刚 【接口测试】场景查看引用,没显示测试计划引用
https://www.tapd.cn/55049933/s/1071857
This commit is contained in:
wxg0103 2021-11-22 15:04:57 +08:00 committed by 刘瑞斌
parent a3ef283488
commit a1d8f100a3
1 changed files with 1 additions and 2 deletions

View File

@ -260,9 +260,8 @@
</select> </select>
<select id="selectTestPlanByRelevancy" resultMap="BaseResultMap" parameterType="io.metersphere.track.request.testcase.QueryTestPlanRequest"> <select id="selectTestPlanByRelevancy" resultMap="BaseResultMap" parameterType="io.metersphere.track.request.testcase.QueryTestPlanRequest">
SELECT * FROM test_plan p LEFT JOIN test_plan_project t ON t.test_plan_id=p.id SELECT * FROM test_plan p
<where> <where>
AND (t.project_id = #{request.projectId} or p.project_id = #{request.projectId})
<if test="request.scenarioId != null"> <if test="request.scenarioId != null">
AND p.id IN (SELECT test_plan_id FROM test_plan_api_scenario WHERE api_scenario_id = #{request.scenarioId} ) AND p.id IN (SELECT test_plan_id FROM test_plan_api_scenario WHERE api_scenario_id = #{request.scenarioId} )
</if> </if>