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
8b44b10e
Commit
8b44b10e
authored
Jan 17, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
投诉与建议处理记录需要从会员的第一条投诉开始展示
parent
34cbc595
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
ProblemManageApiServiceImpl.java
...luate/service/outer/impl/ProblemManageApiServiceImpl.java
+14
-0
No files found.
gic-evaluate-service/src/main/java/com/gic/evaluate/service/outer/impl/ProblemManageApiServiceImpl.java
View file @
8b44b10e
...
...
@@ -7,6 +7,7 @@ import com.gic.commons.util.PageHelperUtils;
import
com.gic.enterprise.error.ErrorCode
;
import
com.gic.enterprise.response.EnterpriseServiceResponse
;
import
com.gic.evaluate.constant.Constants
;
import
com.gic.evaluate.constant.ReplyerTypeEnum
;
import
com.gic.evaluate.dto.ProblemDTO
;
import
com.gic.evaluate.dto.ProblemReplyDTO
;
import
com.gic.evaluate.dto.ProblemUserReplyDTO
;
...
...
@@ -20,6 +21,7 @@ import com.gic.evaluate.service.ProblemService;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.Optional
;
...
...
@@ -66,6 +68,18 @@ public class ProblemManageApiServiceImpl implements ProblemManageApiService {
problemDTO
.
setImgList
(
list
);
}
List
<
ProblemReplyDTO
>
replyList
=
problemReplyService
.
listReply
(
problemId
);
if
(
replyList
==
null
)
{
replyList
=
new
ArrayList
<>();
}
ProblemReplyDTO
problemReplyDTO
=
new
ProblemReplyDTO
();
problemReplyDTO
.
setReplyerType
(
ReplyerTypeEnum
.
MEMBER
.
getCode
());
problemReplyDTO
.
setReplyContent
(
tabProblem
.
getProblemContent
());
problemReplyDTO
.
setMemberId
(
tabProblem
.
getMemberId
());
problemReplyDTO
.
setMemberName
(
tabProblem
.
getMemberName
());
problemReplyDTO
.
setMemberImgUrl
(
tabProblem
.
getMemberImgUrl
());
problemReplyDTO
.
setImgList
(
problemDTO
.
getImgList
());
replyList
.
set
(
0
,
problemReplyDTO
);
problemDTO
.
setReplyList
(
replyList
);
return
EnterpriseServiceResponse
.
success
(
problemDTO
);
}
...
...
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