fix: 用例列表展示了其他项目用例

This commit is contained in:
chenjianxing 2021-06-29 10:43:56 +08:00 committed by jianxing
parent e50da5265e
commit 38ea78a7b6
1 changed files with 9 additions and 11 deletions

View File

@ -341,17 +341,15 @@
<if test="request.createTime >0"> <if test="request.createTime >0">
and test_case.create_time >= #{request.createTime} and test_case.create_time >= #{request.createTime}
</if> </if>
<choose> <if test="request.nodeIds != null and request.nodeIds.size() > 0">
<when test="request.nodeIds != null and request.nodeIds.size() > 0"> and test_case.node_id in
and test_case.node_id in <foreach collection="request.nodeIds" item="nodeId" separator="," open="(" close=")">
<foreach collection="request.nodeIds" item="nodeId" separator="," open="(" close=")"> #{nodeId}
#{nodeId} </foreach>
</foreach> </if>
</when> <if test="request.projectId != null">
<when test="request.projectId != null"> and test_case.project_id = #{request.projectId}
and test_case.project_id = #{request.projectId} </if>
</when>
</choose>
<include refid="filters"/> <include refid="filters"/>
<if test="request.caseCoverage == 'uncoverage' "> <if test="request.caseCoverage == 'uncoverage' ">
and test_case.id not in (select distinct test_case_test.test_case_id from test_case_test) and test_case.id not in (select distinct test_case_test.test_case_id from test_case_test)