refactor(测试计划): 计划详情缺陷列表排除回收站缺陷
This commit is contained in:
parent
1c69fb293a
commit
1503db68c5
|
@ -5,7 +5,7 @@
|
||||||
select b.id as id, b.num as num, b.title as title, bc.description content, b.handle_user handleUser, b.status as status, b.create_user createUser, b.create_time createTime
|
select b.id as id, b.num as num, b.title as title, bc.description content, b.handle_user handleUser, b.status as status, b.create_user createUser, b.create_time createTime
|
||||||
from bug_relation_case brc join bug b on brc.bug_id = b.id
|
from bug_relation_case brc join bug b on brc.bug_id = b.id
|
||||||
left join bug_content bc on b.id = bc.bug_id
|
left join bug_content bc on b.id = bc.bug_id
|
||||||
where brc.test_plan_id = #{request.planId}
|
where brc.test_plan_id = #{request.planId} and b.deleted = false
|
||||||
<if test="request.keyword != null and request.keyword != ''">
|
<if test="request.keyword != null and request.keyword != ''">
|
||||||
and (
|
and (
|
||||||
b.title like concat('%', #{request.keyword},'%')
|
b.title like concat('%', #{request.keyword},'%')
|
||||||
|
@ -29,6 +29,7 @@
|
||||||
from bug_relation_case brc join bug b on brc.bug_id = b.id
|
from bug_relation_case brc join bug b on brc.bug_id = b.id
|
||||||
left join bug_content bc on b.id = bc.bug_id
|
left join bug_content bc on b.id = bc.bug_id
|
||||||
<where>
|
<where>
|
||||||
|
b.deleted = false
|
||||||
<if test="planIds != null and planIds.size() > 0">
|
<if test="planIds != null and planIds.size() > 0">
|
||||||
and brc.test_plan_id IN
|
and brc.test_plan_id IN
|
||||||
<foreach collection="planIds" item="id" separator="," open="(" close=")">
|
<foreach collection="planIds" item="id" separator="," open="(" close=")">
|
||||||
|
|
Loading…
Reference in New Issue