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
8783a47c
Commit
8783a47c
authored
Feb 06, 2020
by
胡学良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改问题详情
parent
35986ecc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
src/main/java/cn/meteor/beyondclouds/modules/question/service/impl/QuestionServiceImpl.java
+6
-1
No files found.
src/main/java/cn/meteor/beyondclouds/modules/question/service/impl/QuestionServiceImpl.java
View file @
8783a47c
...
...
@@ -311,8 +311,13 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
//5.获取话题详情
List
<
TopicReference
>
references
=
topicReferenceService
.
list
(
QuestionUtils
.
getWrapper
(
"referencer_id"
,
question
.
getQuestionId
()));
List
<
String
>
topicIds
=
references
.
stream
().
map
(
TopicReference:
:
getTopicId
).
collect
(
Collectors
.
toList
());
List
<
Topic
>
topics
=
topicService
.
listByIds
(
topicIds
);
List
<
Topic
>
topics
=
new
ArrayList
<>();
if
(!
CollectionUtils
.
isEmpty
(
topicIds
))
{
topics
=
topicService
.
listByIds
(
topicIds
);
}
if
(
CollectionUtils
.
isEmpty
(
topics
))
{
question
.
setTopics
(
List
.
of
());
...
...
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