fix(测试跟踪): 功能用例生成依赖关系报错问题
--bug=1017712 --user=宋昌昌 【测试跟踪】功能用例-选中所有数据-生成依赖关系失败,Console报错 https://www.tapd.cn/55049933/s/1259653
This commit is contained in:
parent
4f1b446038
commit
44d6b1638b
|
@ -415,7 +415,7 @@
|
||||||
select
|
select
|
||||||
test_case.id
|
test_case.id
|
||||||
from test_case
|
from test_case
|
||||||
<include refid="queryWhereCondition"/>
|
<include refid="queryWhereConditionByBaseQueryRequest"/>
|
||||||
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.orders"/>
|
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.orders"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
@ -705,6 +705,52 @@
|
||||||
</where>
|
</where>
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
<sql id="queryWhereConditionByBaseQueryRequest">
|
||||||
|
<where>
|
||||||
|
<if test="request.combine != null">
|
||||||
|
<include refid="combine">
|
||||||
|
<property name="condition" value="request.combine"/>
|
||||||
|
<property name="name" value="request.name"/>
|
||||||
|
<property name="objectKey" value="request.combine.tags"/>
|
||||||
|
</include>
|
||||||
|
</if>
|
||||||
|
<if test="request.notEqStatus != null">
|
||||||
|
and test_case.status != #{request.notEqStatus}
|
||||||
|
</if>
|
||||||
|
<if test="request.name != null">
|
||||||
|
and (test_case.name like CONCAT('%', #{request.name},'%')
|
||||||
|
or test_case.num like CONCAT('%', #{request.name},'%')
|
||||||
|
or test_case.tags like CONCAT('%', #{request.name},'%')
|
||||||
|
or test_case.custom_num like CONCAT('%', #{request.name},'%'))
|
||||||
|
</if>
|
||||||
|
<if test="request.ids != null">
|
||||||
|
and test_case.id in
|
||||||
|
<foreach collection="request.ids" item="id" separator="," open="(" close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
<if test="request.notInIds != null and request.notInIds.size() > 0">
|
||||||
|
and test_case.id not in
|
||||||
|
<foreach collection="request.notInIds" item="id" separator="," open="(" close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
<if test="request.nodeIds != null and request.nodeIds.size() > 0">
|
||||||
|
and test_case.node_id in
|
||||||
|
<foreach collection="request.nodeIds" item="nodeId" separator="," open="(" close=")">
|
||||||
|
#{nodeId}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
<if test="request.projectId != null">
|
||||||
|
and test_case.project_id = #{request.projectId}
|
||||||
|
</if>
|
||||||
|
<include refid="filters"/>
|
||||||
|
<include refid="queryVersionCondition">
|
||||||
|
<property name="versionTable" value="test_case"/>
|
||||||
|
</include>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
|
||||||
<sql id="queryWhereConditionWidthProject">
|
<sql id="queryWhereConditionWidthProject">
|
||||||
<where>
|
<where>
|
||||||
<if test="request.combine != null">
|
<if test="request.combine != null">
|
||||||
|
|
Loading…
Reference in New Issue