fix(接口测试): 场景查看引用,没显示测试计划引用
--bug=1008115 --user=王孝刚 【接口测试】场景查看引用,没显示测试计划引用 https://www.tapd.cn/55049933/s/1071857
This commit is contained in:
parent
a3ef283488
commit
a1d8f100a3
|
@ -260,9 +260,8 @@
|
|||
</select>
|
||||
|
||||
<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>
|
||||
AND (t.project_id = #{request.projectId} or p.project_id = #{request.projectId})
|
||||
<if test="request.scenarioId != null">
|
||||
AND p.id IN (SELECT test_plan_id FROM test_plan_api_scenario WHERE api_scenario_id = #{request.scenarioId} )
|
||||
</if>
|
||||
|
|
Loading…
Reference in New Issue