Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
b190d409
Commit
b190d409
authored
Jul 23, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加积分消息队列接口
parent
cf3cb901
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
ImPraiseBiz.java
...r/src/main/java/com/xxfc/platform/im/biz/ImPraiseBiz.java
+1
-1
ImQuestionBiz.java
...src/main/java/com/xxfc/platform/im/biz/ImQuestionBiz.java
+5
-1
No files found.
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/ImPraiseBiz.java
View file @
b190d409
...
...
@@ -93,7 +93,7 @@ public class ImPraiseBiz extends BaseBiz<ImPraiseMapper, ImPraise> {
return
list
;
}
public
boolean
isExist
(
Long
userId
,
Long
questionId
)
{
public
boolean
isExist
(
Integer
userId
,
Long
questionId
)
{
Map
<
String
,
Object
>
map
=
new
HashedMap
<>();
map
.
put
(
"userId"
,
userId
);
map
.
put
(
"questionId"
,
questionId
);
...
...
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/ImQuestionBiz.java
View file @
b190d409
...
...
@@ -40,7 +40,11 @@ public class ImQuestionBiz extends BaseBiz<ImQuestionMapper, ImQuestion> {
public
ObjectRestResponse
getList
(
QuestionParamDto
questionParamDto
)
{
Query
query
=
new
Query
(
questionParamDto
);
PageDataVO
<
QuestionListVo
>
pageDataVO
=
PageDataVO
.
pageInfo
(
query
,
()
->
mapper
.
getQuestionList
(
query
.
getSuper
()));
pageDataVO
.
getData
().
forEach
((
a
)
->
a
.
setPraise
(
imPraiseBiz
.
isExist
(
a
.
getUserId
(),
a
.
getId
())));
AppUserDTO
appUserDTO
=
userBiz
.
getUserInfo
();
if
(
appUserDTO
!=
null
)
{
pageDataVO
.
getData
().
forEach
((
a
)
->
a
.
setPraise
(
imPraiseBiz
.
isExist
(
appUserDTO
.
getUserid
(),
a
.
getId
())));
}
return
new
ObjectRestResponse
<>().
data
(
pageDataVO
);
}
...
...
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