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 f27f6dee53
commit 37238a4b21
1 changed files with 6 additions and 1 deletions

View File

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