fix(测试计划): 测试集列表搜索根据模块搜索有误

--bug=1046834 --user=宋昌昌 【测试计划】报告-报告详情-用例/接口/场景明细-开启测试点-根据模块名称搜索-无法搜索到对应数据 https://www.tapd.cn/55049933/s/1583303
This commit is contained in:
song-cc-rock 2024-09-23 10:39:06 +08:00 committed by Craftsman
parent 8cf6d52e05
commit 7d873fc626
3 changed files with 6 additions and 3 deletions

View File

@ -57,7 +57,8 @@
where tprac.test_plan_report_id = #{request.reportId}
<if test="request.keyword != null and request.keyword != ''">
and (tprac.api_case_name like concat('%', #{request.keyword}, '%')
or tprac.api_case_num like concat('%', #{request.keyword}, '%'))
or tprac.api_case_num like concat('%', #{request.keyword}, '%')
or tprac.api_case_module like concat('%', #{request.keyword}, '%'))
</if>
<include refid="filter"/>
group by tprac.test_plan_collection_id

View File

@ -56,7 +56,8 @@
where tpras.test_plan_report_id = #{request.reportId}
<if test="request.keyword != null and request.keyword != ''">
and (tpras.api_scenario_name like concat('%', #{request.keyword}, '%')
or tpras.api_scenario_num like concat('%', #{request.keyword}, '%'))
or tpras.api_scenario_num like concat('%', #{request.keyword}, '%')
or tpras.api_scenario_module like concat('%', #{request.keyword}, '%'))
</if>
<include refid="filter"/>
group by tpras.test_plan_collection_id

View File

@ -77,7 +77,8 @@
where tprfc.test_plan_report_id = #{request.reportId}
<if test="request.keyword != null and request.keyword != ''">
and (tprfc.function_case_num like concat('%', #{request.keyword}, '%')
or tprfc.function_case_name like concat('%', #{request.keyword}, '%'))
or tprfc.function_case_name like concat('%', #{request.keyword}, '%')
or tprfc.function_case_module like concat('%', #{request.keyword}, '%'))
</if>
<include refid="filter"/>
group by tprfc.test_plan_collection_id