fix(测试跟踪): 功能用例导出评论报错

This commit is contained in:
chenjianxing 2022-10-18 15:42:18 +08:00 committed by jianxing
parent 913e4b1ce9
commit 30ad47b5ae
1 changed files with 2 additions and 2 deletions

View File

@ -46,10 +46,10 @@ public class TestCaseExportCommendConverter implements TestCaseExportConverter {
String status = StringUtils.EMPTY;
if (StringUtils.equals(comment.getType(), TestCaseCommentType.PLAN.name())) {
status = getFromMapOfNullableWithTranslate(planCaseStatusMap, comment.getStatus());
status = "[".concat(status).concat("]");
status = StringUtils.isBlank(status) ? StringUtils.EMPTY : "[".concat(status).concat("]");
} else if (StringUtils.equals(comment.getType(), TestCaseCommentType.REVIEW.name())) {
status = getFromMapOfNullableWithTranslate(reviewCaseStatusMap, comment.getStatus());
status = "[".concat(status).concat("]");
status = StringUtils.isBlank(status) ? StringUtils.EMPTY : "[".concat(status).concat("]");
}
String updateTime = DateUtils.getTimeString(comment.getUpdateTime());
String description = comment.getDescription();