From 1503db68c5203e858bcfec6f27ded068b579fa2f Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Mon, 2 Sep 2024 11:11:28 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):?= =?UTF-8?q?=20=E8=AE=A1=E5=88=92=E8=AF=A6=E6=83=85=E7=BC=BA=E9=99=B7?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=8E=92=E9=99=A4=E5=9B=9E=E6=94=B6=E7=AB=99?= =?UTF-8?q?=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/plan/mapper/ExtTestPlanBugMapper.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanBugMapper.xml b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanBugMapper.xml index 138dddc75f..607123aed5 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanBugMapper.xml +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanBugMapper.xml @@ -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 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 - where brc.test_plan_id = #{request.planId} + where brc.test_plan_id = #{request.planId} and b.deleted = false and ( b.title like concat('%', #{request.keyword},'%') @@ -29,6 +29,7 @@ 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 + b.deleted = false and brc.test_plan_id IN