fix(测试跟踪): 修复功能用例关联前后置把所有版本都查询出来
This commit is contained in:
parent
88db0c1a85
commit
546a80c596
|
@ -875,7 +875,7 @@
|
|||
project_version.id versionId
|
||||
FROM
|
||||
test_case AS test_case
|
||||
left join project_version on project_version.project_id = test_case.project_id and project_version.id = test_case.version_id
|
||||
inner join project_version on project_version.project_id = test_case.project_id and project_version.id = test_case.version_id
|
||||
<include refid="notInQueryWhereCondition"></include>
|
||||
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.orders"/>
|
||||
</select>
|
||||
|
@ -977,7 +977,7 @@
|
|||
<if test="request.refId != null">
|
||||
and ${versionTable}.ref_id = #{request.refId}
|
||||
</if>
|
||||
<if test="request.versionId == null and request.refId == null and request.id == null">
|
||||
<if test="request.versionId == null and request.refId == null">
|
||||
AND ${versionTable}.latest = 1
|
||||
</if>
|
||||
</sql>
|
||||
|
|
Loading…
Reference in New Issue