diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.java b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.java index af2697c45e..ab3c5bcc86 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.java +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.java @@ -13,4 +13,6 @@ public interface ExtCustomFieldTemplateMapper { List list(@Param("request") CustomFieldTemplate request); List lisSimple(@Param("request") CustomFieldTemplate request); + + List getSystemCustomField(@Param("templateId") String templateId, @Param("fieldName") String fieldName); } diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.xml index 742abe654d..7508fdc110 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.xml @@ -31,4 +31,11 @@ where cft.template_id = #{request.templateId} + diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.java b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.java index 0bf4521b2a..6605adda9e 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.java +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.java @@ -94,7 +94,7 @@ public interface ExtTestCaseMapper { List countRelevanceMaintainer(@Param("projectId") String projectId); - int getTestPlanBug(@Param("planId") String planId); + List getTestPlanBug(@Param("planId") String planId); int getTestPlanCase(@Param("planId") String planId); diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml index 87e4a13a4a..55caf288c4 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml @@ -859,8 +859,8 @@ and tc.status != 'Trash' and tc.latest = 1 and tc.id in (select distinct test_case_test.test_case_id from test_case_test) group by tc.maintainer - + select distinct tci.issues_id from test_plan_test_case tptc join test_case_issues tci on tptc.id = tci.resource_id right join test_case @@ -868,8 +868,6 @@ join issues on tci.issues_id = issues.id where tptc.plan_id = #{planId} - and (issues.status != 'closed' - or issues.status is null) and test_case.status != 'Trash';