From 334cdd9741effb044587a123867a074e9fb8ddcb Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 15 Mar 2023 17:46:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E8=84=91=E5=9B=BE=E7=94=A8=E4=BE=8B=E8=AF=84=E5=AE=A1=E4=B8=8D?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E7=82=B9=E4=BF=9D=E5=AD=98=E4=BC=9A=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1024439 --user=陈建星 【测试跟踪】用例评审-脑图模式-根结点增加下级-点击保存报SQL异常 https://www.tapd.cn/55049933/s/1350667 --- .../java/io/metersphere/service/TestReviewTestCaseService.java | 3 +++ test-track/frontend/src/business/head/TrackHeaderMenus.vue | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test-track/backend/src/main/java/io/metersphere/service/TestReviewTestCaseService.java b/test-track/backend/src/main/java/io/metersphere/service/TestReviewTestCaseService.java index 47c0e2cf43..7daf743b94 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/TestReviewTestCaseService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/TestReviewTestCaseService.java @@ -521,6 +521,9 @@ public class TestReviewTestCaseService { public void editTestCaseForMinder(String reviewId, List testCaseReviewTestCases) { List caseIds = testCaseReviewTestCases.stream().map(TestCaseReviewTestCase::getCaseId).collect(Collectors.toList()); + if (CollectionUtils.isEmpty(caseIds)) { + return; + } checkReviewCase(reviewId, caseIds); if (!CollectionUtils.isEmpty(testCaseReviewTestCases)) { testCaseReviewTestCases.forEach((item) -> { diff --git a/test-track/frontend/src/business/head/TrackHeaderMenus.vue b/test-track/frontend/src/business/head/TrackHeaderMenus.vue index a07365a2c6..e390035662 100644 --- a/test-track/frontend/src/business/head/TrackHeaderMenus.vue +++ b/test-track/frontend/src/business/head/TrackHeaderMenus.vue @@ -68,7 +68,7 @@ export default { this.pathName = '/track/review/all'; } else if (to.path.indexOf("/track/plan") >= 0) { this.pathName = '/track/plan/all'; - } if (to.path.indexOf("/track/case") >= 0) { + } else if (to.path.indexOf("/track/case") >= 0) { this.pathName = this.caseListPath; } else { this.pathName = to.path;