refactor(用例管理): 功能用例列表增加是否有关联用例的筛选条件
This commit is contained in:
parent
8dc9e2b022
commit
6d9a581da6
|
@ -4,7 +4,7 @@ functional_case.hasReview=已评审
|
|||
functional_case.unReview=未评审
|
||||
functional_case.passRate=通过率
|
||||
functional_case.hasPass=已通过
|
||||
functional_case.unPass=不通过
|
||||
functional_case.unPass=未通过
|
||||
functional_case.associateRate=关联率
|
||||
functional_case.hasAssociate=已关联
|
||||
functional_case.unAssociate=未关联
|
||||
|
|
|
@ -4,7 +4,7 @@ functional_case.hasReview=已评审
|
|||
functional_case.unReview=未评审
|
||||
functional_case.passRate=通过率
|
||||
functional_case.hasPass=已通过
|
||||
functional_case.unPass=不通过
|
||||
functional_case.unPass=未通过
|
||||
functional_case.associateRate=关联率
|
||||
functional_case.hasAssociate=已关联
|
||||
functional_case.unAssociate=未关联
|
||||
|
|
|
@ -275,6 +275,25 @@
|
|||
and functional_case.delete_user in
|
||||
<include refid="io.metersphere.system.mapper.BaseMapper.filterInWrapper"/>
|
||||
</when>
|
||||
<!-- 关联用例的 -->
|
||||
<when test="key=='associateCase'">
|
||||
<if test="values.contains('true')">
|
||||
and functional_case.id in (
|
||||
select
|
||||
distinct fct.case_id
|
||||
from functional_case_test fct
|
||||
LEFT JOIN functional_case fc ON fc.id = fct.case_id
|
||||
where fc.deleted = false )
|
||||
</if>
|
||||
<if test="values.contains('false')">
|
||||
and functional_case.id not in (
|
||||
select
|
||||
distinct fct.case_id
|
||||
from functional_case_test fct
|
||||
LEFT JOIN functional_case fc ON fc.id = fct.case_id
|
||||
where fc.deleted = false )
|
||||
</if>
|
||||
</when>
|
||||
</choose>
|
||||
</if>
|
||||
</foreach>
|
||||
|
|
Loading…
Reference in New Issue