fix(测试跟踪): 修复测试计划关联的case列表没有版本信息的缺陷

--bug=1018838 --user=王孝刚 【测试跟踪】测试计划-关联接口用例后,列表中没有版本信息
https://www.tapd.cn/55049933/s/1276600
This commit is contained in:
wxg0103 2022-10-25 16:09:59 +08:00 committed by jianxing
parent 221a0c0049
commit 5a701be1c6
1 changed files with 4 additions and 1 deletions

View File

@ -72,7 +72,8 @@
a.protocol,
t.status execResult,
a.user_id,
a.version_id versionId
a.version_id versionId,
project_version.NAME AS version_name
from
test_plan_api_case t
inner join
@ -85,6 +86,8 @@
api_definition a
on
c.api_definition_id = a.id
inner JOIN project_version ON a.project_id = project_version.project_id
AND project_version.id = a.version_id
where 1
<if test="request.protocol != null and request.protocol!=''">
and a.protocol = #{request.protocol}