Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-evaluate
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-evaluate
Commits
92c4abc4
Commit
92c4abc4
authored
May 25, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改展示bug
parent
23806769
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
ProblemManageApiServiceImpl.java
...luate/service/outer/impl/ProblemManageApiServiceImpl.java
+2
-1
No files found.
gic-evaluate-service/src/main/java/com/gic/evaluate/service/outer/impl/ProblemManageApiServiceImpl.java
View file @
92c4abc4
...
@@ -19,6 +19,7 @@ import com.gic.evaluate.service.ProblemManageApiService;
...
@@ -19,6 +19,7 @@ import com.gic.evaluate.service.ProblemManageApiService;
import
com.gic.evaluate.service.ProblemReplyService
;
import
com.gic.evaluate.service.ProblemReplyService
;
import
com.gic.evaluate.service.ProblemService
;
import
com.gic.evaluate.service.ProblemService
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.curator.shaded.com.google.common.collect.Lists
;
import
org.apache.curator.shaded.com.google.common.collect.Lists
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -65,7 +66,7 @@ public class ProblemManageApiServiceImpl implements ProblemManageApiService {
...
@@ -65,7 +66,7 @@ public class ProblemManageApiServiceImpl implements ProblemManageApiService {
List
<
TabProblemImg
>
tabImgList
=
problemImgService
.
listImageByProblemId
(
problemId
);
List
<
TabProblemImg
>
tabImgList
=
problemImgService
.
listImageByProblemId
(
problemId
);
List
<
String
>
list
=
Optional
.
ofNullable
(
tabImgList
).
orElse
(
Collections
.
emptyList
()).
stream
().
map
(
TabProblemImg:
:
getImgUrl
).
collect
(
Collectors
.
toList
());
List
<
String
>
list
=
Optional
.
ofNullable
(
tabImgList
).
orElse
(
Collections
.
emptyList
()).
stream
().
map
(
TabProblemImg:
:
getImgUrl
).
collect
(
Collectors
.
toList
());
problemDTO
.
setImgList
(
list
);
problemDTO
.
setImgList
(
list
);
}
else
{
}
else
if
(
StringUtils
.
isNotBlank
(
problemDTO
.
getImageUrl
()))
{
problemDTO
.
setImgList
(
Lists
.
newArrayList
(
problemDTO
.
getImageUrl
()));
problemDTO
.
setImgList
(
Lists
.
newArrayList
(
problemDTO
.
getImageUrl
()));
}
}
List
<
ProblemReplyDTO
>
replyList
=
problemReplyService
.
listReply
(
problemId
);
List
<
ProblemReplyDTO
>
replyList
=
problemReplyService
.
listReply
(
problemId
);
...
...
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