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,6 +619,7 @@ public class TestReviewTestCaseService {
// 添加一条评论历史
String status = getForceUpdateStatusCommentStatus(item.getStatus());
if (StringUtils.isNotBlank(status)) {
TestCaseReviewTestCaseEditRequest testCaseReviewTestCase = new TestCaseReviewTestCaseEditRequest();
testCaseReviewTestCase.setStatus(status);
testCaseReviewTestCase.setReviewer(SessionUtils.getUser().getId());
@ -626,6 +627,7 @@ public class TestReviewTestCaseService {
testCaseReviewTestCase.setCaseId(item.getCaseId());
testCaseReviewTestCase.setReviewId(reviewId);
testCaseCommentService.saveReviewComment(testCaseReviewTestCase);
}
});
}
}