From f735d4c953b8db2d35743fbe48eb14b3d75f486b Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 9 Apr 2020 11:44:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=8C=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metersphere/service/TestPlanService.java | 5 +++ .../components/track/case/TestCase.vue | 6 +-- .../track/case/components/NodeTree.vue | 5 ++- .../track/case/components/TestCaseList.vue | 12 ++---- .../components/track/plan/TestPlanView.vue | 22 ++-------- .../track/plan/components/PlanNodeTree.vue | 40 ++++++++++++++++--- .../plan/components/TestCasePlanList.vue | 12 ++---- .../plan/components/TestCaseRelevance.vue | 38 ++++++++++-------- .../track/plan/components/TestPlanList.vue | 11 ++--- 9 files changed, 77 insertions(+), 74 deletions(-) diff --git a/backend/src/main/java/io/metersphere/service/TestPlanService.java b/backend/src/main/java/io/metersphere/service/TestPlanService.java index 338876fdbe..d577adfc93 100644 --- a/backend/src/main/java/io/metersphere/service/TestPlanService.java +++ b/backend/src/main/java/io/metersphere/service/TestPlanService.java @@ -73,6 +73,11 @@ public class TestPlanService { public void testPlanRelevance(PlanCaseRelevanceRequest request) { List testCaseIds = request.getTestCaseIds(); + + if (testCaseIds.isEmpty()) { + return; + } + TestCaseExample testCaseExample = new TestCaseExample(); testCaseExample.createCriteria().andIdIn(testCaseIds); diff --git a/frontend/src/business/components/track/case/TestCase.vue b/frontend/src/business/components/track/case/TestCase.vue index 60cf32a490..ef5d8dc8d4 100644 --- a/frontend/src/business/components/track/case/TestCase.vue +++ b/frontend/src/business/components/track/case/TestCase.vue @@ -1,5 +1,5 @@