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