fix(功能用例): 修复功能用例不通过保存评论内容失效问题

This commit is contained in:
guoyuqi 2024-01-11 18:15:46 +08:00 committed by 刘瑞斌
parent bca630ecf6
commit 394b7af4bf
1 changed files with 2 additions and 0 deletions

View File

@ -152,6 +152,8 @@ public class ReviewFunctionalCaseService {
if (StringUtils.equalsIgnoreCase(request.getStatus(), FunctionalCaseReviewStatus.UN_PASS.toString())) {
if (StringUtils.isBlank(request.getContent())) {
throw new MSException(Translator.get("case_review_content.not.exist"));
} else {
caseReviewHistory.setContent(request.getContent().getBytes());
}
} else {
if (StringUtils.isNotBlank(request.getContent())) {