fix(测试跟踪): 添加功能用例前后置列表,列表数量显示有误

--bug=1032560 --user=陈建星 【测试跟踪】github#27365,为一条测试用例添加前置/后置用例时,搜索框左右两侧的数据不一致 https://www.tapd.cn/55049933/s/1436132
This commit is contained in:
AgAngle 2023-11-14 14:57:15 +08:00 committed by jianxing
parent 2bf731a553
commit db68e491bc
1 changed files with 2 additions and 10 deletions

View File

@ -342,7 +342,7 @@
select tcn.id, count(*) as caseNum
from test_case
left join test_case_node tcn on test_case.node_id = tcn.id
<include refid="queryWhereCondition"/>
<include refid="notInQueryWhereCondition"/>
group by tcn.id
</select>
<select id="getTestPlanRelateCountNodes" resultType="io.metersphere.dto.TestCaseNodeDTO">
@ -638,13 +638,6 @@
</include>
</if>
<if test="request.testCaseContainIds != null and request.testCaseContainIds.size() > 0">
and test_case.id not in
<foreach collection="request.testCaseContainIds" item="id" separator="," open="(" close=")">
#{id}
</foreach>
</if>
<if test="request.statusIsNot != null">
and test_case.status != #{request.statusIsNot}
</if>
@ -1135,8 +1128,7 @@
test_case.last_execute_result
FROM
test_case AS test_case
inner 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.id = test_case.version_id
<include refid="notInQueryWhereCondition"></include>
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.orders"/>
</select>