Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
段启岩
beyond-clouds
Commits
d1847c4d
Commit
d1847c4d
authored
Feb 11, 2020
by
段启岩
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/fix-issue#51'
parents
3e004bac
19a7fbdc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
src/main/java/cn/meteor/beyondclouds/modules/question/form/QuestionReplyForm.java
+1
-1
src/main/java/cn/meteor/beyondclouds/modules/question/service/impl/QuestionServiceImpl.java
+2
-2
src/main/resources/application.yml
+1
-1
No files found.
src/main/java/cn/meteor/beyondclouds/modules/question/form/QuestionReplyForm.java
View file @
d1847c4d
...
...
@@ -17,7 +17,7 @@ import java.util.List;
* @author 胡学良
* @since 2020/1/31
*/
@ApiModel
(
value
=
"Question
Form"
,
description
=
"问题
表单"
)
@ApiModel
(
value
=
"Question
ReplyForm"
,
description
=
"问题回复
表单"
)
@Data
public
class
QuestionReplyForm
{
...
...
src/main/java/cn/meteor/beyondclouds/modules/question/service/impl/QuestionServiceImpl.java
View file @
d1847c4d
...
...
@@ -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
...
...
src/main/resources/application.yml
View file @
d1847c4d
...
...
@@ -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
:
1
00Centa30821%mysql
password
:
1
97442
# 邮箱
mail
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment