From e277bba824f81c6213b97603a575f07379d07cf3 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Mon, 31 Oct 2022 18:25:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=B7=A5=E4=BD=9C=E5=8F=B0):=20?= =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=88=91=E7=9A=84=E5=BE=85=E5=8A=9E=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E8=AE=A1=E5=88=92=E5=88=97=E8=A1=A8=E7=AD=9B=E9=80=89?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --user=郭雨琦 --- .../base/mapper/ext/ExtTestPlanMapper.xml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanMapper.xml b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanMapper.xml index bf2152a84c..10f474bf3c 100644 --- a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanMapper.xml +++ b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanMapper.xml @@ -180,16 +180,10 @@ AND test_plan.id = #{request.id} - + and test_plan.status != 'Archived' - - and test_plan.status in - - #{value} - - @@ -211,15 +205,14 @@ AND (( test_plan_principal.principal_id = '${@io.metersphere.commons.utils.SessionUtils@getUserId()}' and test_plan.status in - + ) or (test_plan_test_case.executor = '${@io.metersphere.commons.utils.SessionUtils@getUserId()}' and test_plan_test_case.status in - + )) - AND test_plan.status != 'Archived' and test_plan.status in @@ -326,13 +319,12 @@ SELECT p.name FROM test_plan tp INNER JOIN project p ON p.id = tp.project_id - WHERE tp.id = #{0} - limit 1; + WHERE tp.id = #{0} limit 1;