Commit d1847c4d by 段启岩

Merge remote-tracking branch 'origin/fix-issue#51'

parents 3e004bac 19a7fbdc
......@@ -17,7 +17,7 @@ import java.util.List;
* @author 胡学良
* @since 2020/1/31
*/
@ApiModel(value = "QuestionForm", description = "问题表单")
@ApiModel(value = "QuestionReplyForm", description = "问题回复表单")
@Data
public class QuestionReplyForm {
......
......@@ -185,7 +185,7 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
}
//2.删除question-tag表中关于该问题的标签
questionTagService.remove(QuestionUtils.getWrapper("question_id", questionId));
deleteOldTagReferences(questionId);
//3.获取该问题的所有回复
List<QuestionReply> questionReplies = questionReplyService.list(QuestionUtils.getWrapper("question_id", questionId));
......@@ -204,7 +204,7 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
removeById(questionId);
//8.删除话题引用表中的问题信息
topicReferenceService.remove(QuestionUtils.getWrapper("referencer_id", question.getQuestionId()));
deleteOldTopicReferences(questionId);
// 9.发送消息到消息队列
messageQueueService
......
......@@ -4,7 +4,7 @@ spring:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/beyond_clouds?useUnicode=true&characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: 100Centa30821%mysql
password: 197442
# 邮箱
mail:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment