From dc7ad041b7ccb88edfe3eee603da40ffbb0cad56 Mon Sep 17 00:00:00 2001 From: AgAngle <1323481023@qq.com> Date: Fri, 22 Dec 2023 15:27:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E8=AF=84=E5=AE=A1=E8=84=91=E5=9B=BE=E7=94=A8=E4=BE=8B=E4=B8=8B?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AD=90=E8=8A=82=E7=82=B9=EF=BC=8C=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E5=90=8E=E4=BC=9A=E6=B7=BB=E5=8A=A0=E4=B8=80=E6=9D=A1?= =?UTF-8?q?=E7=A9=BA=E8=AF=84=E8=AE=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1033825 --user=陈建星 [测试跟踪] github #28040在脑图模式下评审用例,添加的详细信息没有记录到评审记录中 https://www.tapd.cn/55049933/s/1447412 --- .../service/TestReviewTestCaseService.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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 8f8bc18bb7..7a38cff6c5 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 @@ -619,13 +619,15 @@ public class TestReviewTestCaseService { // 添加一条评论历史 String status = getForceUpdateStatusCommentStatus(item.getStatus()); - TestCaseReviewTestCaseEditRequest testCaseReviewTestCase = new TestCaseReviewTestCaseEditRequest(); - testCaseReviewTestCase.setStatus(status); - testCaseReviewTestCase.setReviewer(SessionUtils.getUser().getId()); - testCaseReviewTestCase.setUpdateTime(System.currentTimeMillis()); - testCaseReviewTestCase.setCaseId(item.getCaseId()); - testCaseReviewTestCase.setReviewId(reviewId); - testCaseCommentService.saveReviewComment(testCaseReviewTestCase); + if (StringUtils.isNotBlank(status)) { + TestCaseReviewTestCaseEditRequest testCaseReviewTestCase = new TestCaseReviewTestCaseEditRequest(); + testCaseReviewTestCase.setStatus(status); + testCaseReviewTestCase.setReviewer(SessionUtils.getUser().getId()); + testCaseReviewTestCase.setUpdateTime(System.currentTimeMillis()); + testCaseReviewTestCase.setCaseId(item.getCaseId()); + testCaseReviewTestCase.setReviewId(reviewId); + testCaseCommentService.saveReviewComment(testCaseReviewTestCase); + } }); } }