fix(测试跟踪): 评审脑图用例下添加子节点,保存后会添加一条空评论

--bug=1033825 --user=陈建星 [测试跟踪] github #28040在脑图模式下评审用例,添加的详细信息没有记录到评审记录中 https://www.tapd.cn/55049933/s/1447412
This commit is contained in:
AgAngle 2023-12-22 15:27:43 +08:00 committed by 刘瑞斌
parent df9cf8cfae
commit dc7ad041b7
1 changed files with 9 additions and 7 deletions

View File

@ -619,13 +619,15 @@ public class TestReviewTestCaseService {
// 添加一条评论历史 // 添加一条评论历史
String status = getForceUpdateStatusCommentStatus(item.getStatus()); String status = getForceUpdateStatusCommentStatus(item.getStatus());
TestCaseReviewTestCaseEditRequest testCaseReviewTestCase = new TestCaseReviewTestCaseEditRequest(); if (StringUtils.isNotBlank(status)) {
testCaseReviewTestCase.setStatus(status); TestCaseReviewTestCaseEditRequest testCaseReviewTestCase = new TestCaseReviewTestCaseEditRequest();
testCaseReviewTestCase.setReviewer(SessionUtils.getUser().getId()); testCaseReviewTestCase.setStatus(status);
testCaseReviewTestCase.setUpdateTime(System.currentTimeMillis()); testCaseReviewTestCase.setReviewer(SessionUtils.getUser().getId());
testCaseReviewTestCase.setCaseId(item.getCaseId()); testCaseReviewTestCase.setUpdateTime(System.currentTimeMillis());
testCaseReviewTestCase.setReviewId(reviewId); testCaseReviewTestCase.setCaseId(item.getCaseId());
testCaseCommentService.saveReviewComment(testCaseReviewTestCase); testCaseReviewTestCase.setReviewId(reviewId);
testCaseCommentService.saveReviewComment(testCaseReviewTestCase);
}
}); });
} }
} }