对原有评论null的判断

This commit is contained in:
wulin 2020-12-08 19:03:00 +08:00
parent 9bdde9674c
commit 4f3343179f

View File

@ -963,7 +963,8 @@ public class ResultRecordController extends AbstractController {
resultComment.setComment(commandValue);
}else{
resultComment.setOptDesc(resultComment.getOptDesc() + "修改了目标");
resultComment.setComment(resultComment.getComment() + commandValue);
resultComment.setComment((resultComment.getComment() == null ? "" : resultComment.getComment()) + commandValue);
}
resultCommentService.updateResultCommentById(resultComment);//.updateResultCommentCommentById(dto.getCommentId(), commandValue);
}