From b4af198897cca9f8f9b5e7faf59c4e384fe2a90c Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Thu, 15 Oct 2020 18:08:41 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):?= =?UTF-8?q?=20=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=EF=BC=8C=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E8=AF=84=E5=AE=A1=20=E4=B8=A4=E5=A4=84=E5=85=B3?= =?UTF-8?q?=E8=81=94=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E5=85=A8=E9=83=A8=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/mapper/ext/ExtTestCaseMapper.java | 5 + .../base/mapper/ext/ExtTestCaseMapper.xml | 107 ++++++++++++++++++ .../track/controller/TestCaseController.java | 7 +- .../testcase/PlanCaseRelevanceRequest.java | 1 + .../testreview/ReviewRelevanceRequest.java | 1 + .../track/service/TestCaseReviewService.java | 16 ++- .../track/service/TestCaseService.java | 52 +++------ .../track/service/TestPlanService.java | 14 +++ .../track/plan/view/TestPlanView.vue | 1 + .../plan/view/comonents/TestCaseRelevance.vue | 84 ++++++++++---- .../track/review/view/TestCaseReviewView.vue | 1 + .../view/components/TestReviewRelevance.vue | 68 +++++------ 12 files changed, 253 insertions(+), 104 deletions(-) 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 87a829a773..caa080bd5c 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 @@ -20,8 +20,13 @@ public interface ExtTestCaseMapper { TestCase getMaxNumByProjectId(@Param("projectId") String projectId); + List getTestCaseByNotInPlan(@Param("request") QueryTestCaseRequest request); + + List getTestCaseByNotInReview(@Param("request") QueryTestCaseRequest request); + /** * 检查某工作空间下是否有某用例 + * * @param caseId * @param workspaceId * @return TestCase ID 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 51195acfbf..4b80b7764b 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 @@ -97,6 +97,113 @@ + + +