Browse Source

add:问题点赞和评论

zhongwei
luyie 2 months ago
parent
commit
815c0ceabf
  1. 2
      hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/impl/QuestionAnswerCommentServiceImpl.java

2
hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/impl/QuestionAnswerCommentServiceImpl.java

@ -45,6 +45,8 @@ public class QuestionAnswerCommentServiceImpl extends ServiceImpl<QuestionAnswer
req.getQuestionId());
if (ObjectUtil.isEmpty(entity)) {
entity = req.toEntity();
} else {
entity.setContent(req.getContent());
}
return this.saveOrUpdate(entity);
}

Loading…
Cancel
Save