Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
91c48c0c
Commit
91c48c0c
authored
Jul 15, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加照片海康下载
parent
82e4867c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/h5/web/FeedbackApiController.java
...a/com/mortals/xhx/busiz/h5/web/FeedbackApiController.java
+14
-11
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/h5/web/FeedbackApiController.java
View file @
91c48c0c
...
@@ -23,10 +23,7 @@ import org.springframework.web.bind.annotation.RequestBody;
...
@@ -23,10 +23,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.Date
;
import
java.util.*
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
static
com
.
mortals
.
framework
.
ap
.
SysConstains
.*;
import
static
com
.
mortals
.
framework
.
ap
.
SysConstains
.*;
...
@@ -82,13 +79,19 @@ public class FeedbackApiController extends AbstractBaseController<FeedbackReq> {
...
@@ -82,13 +79,19 @@ public class FeedbackApiController extends AbstractBaseController<FeedbackReq> {
//已反馈
//已反馈
//查询我已经回答过的
//查询我已经回答过的
List
<
Long
>
feedbackIdList
=
answerService
.
find
(
new
FeedbackAnswerQuery
().
staffId
(
context
.
getUser
().
getCustomerId
())).
stream
().
map
(
i
->
i
.
getFeedbackId
()).
distinct
().
collect
(
Collectors
.
toList
());
List
<
Long
>
feedbackIdList
=
answerService
.
find
(
new
FeedbackAnswerQuery
().
staffId
(
context
.
getUser
().
getCustomerId
())).
stream
().
map
(
i
->
i
.
getFeedbackId
()).
distinct
().
collect
(
Collectors
.
toList
());
if
(
ObjectUtils
.
isEmpty
(
feedbackIdList
)){
pageAllInfo
.
setTotalResult
(
0
);
model
.
put
(
PAGEINFO_KEY
,
pageAllInfo
);
model
.
put
(
KEY_RESULT_DATA
,
new
ArrayList
<>());
parsePageInfo
(
model
,
pageAllInfo
);
}
else
{
FeedbackQuery
feedbackQuery
=
new
FeedbackQuery
();
FeedbackQuery
feedbackQuery
=
new
FeedbackQuery
();
feedbackQuery
.
setIdList
(
feedbackIdList
);
feedbackQuery
.
setIdList
(
feedbackIdList
);
Result
<
FeedbackEntity
>
result
=
feedbackService
.
find
(
feedbackQuery
,
pageAllInfo
,
null
);
Result
<
FeedbackEntity
>
result
=
feedbackService
.
find
(
feedbackQuery
,
pageAllInfo
,
null
);
model
.
put
(
PAGEINFO_KEY
,
result
.
getPageInfo
());
model
.
put
(
PAGEINFO_KEY
,
result
.
getPageInfo
());
model
.
put
(
KEY_RESULT_DATA
,
result
.
getList
());
model
.
put
(
KEY_RESULT_DATA
,
result
.
getList
());
parsePageInfo
(
model
,
result
.
getPageInfo
());
parsePageInfo
(
model
,
result
.
getPageInfo
());
}
}
else
{
}
else
{
//未反馈
//未反馈
//查询我的反馈 但是还未回答的
//查询我的反馈 但是还未回答的
...
...
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