fix(UI测试): UI报告高级搜索支持所属测试字段

--bug=1011918 --user=陈建星 【通用功能】测试报告-高级搜索:所属测试字段优化 https://www.tapd.cn/55049933/s/1157012
This commit is contained in:
chenjianxing 2022-05-12 16:09:43 +08:00 committed by jianxing
parent d95c08f070
commit c3ea8b3b8f
1 changed files with 6 additions and 1 deletions

View File

@ -105,7 +105,11 @@
<property name="object" value="${condition}.name"/>
</include>
</if>
<if test="${condition}.testName != null">
<if test="${isUi} and ${condition}.testName != null">
and `scenario_id` IN
(SELECT id FROM ui_scenario WHERE name like CONCAT('%', #{${condition}.testName.value},'%') )
</if>
<if test="!${isUi} and ${condition}.testName != null">
and `scenario_id` IN
(SELECT id FROM api_scenario WHERE name like CONCAT('%', #{${condition}.testName.value},'%') )
</if>
@ -154,6 +158,7 @@
<include refid="listCombine">
<property name="condition" value="request.combine"/>
<property name="name" value="request.name"/>
<property name="isUi" value="request.isUi"/>
</include>
</if>