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
9223361a
Commit
9223361a
authored
Nov 07, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台添加IM接口
parent
35e4382b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
MsgBiz.java
...server/src/main/java/com/xxfc/platform/im/biz/MsgBiz.java
+2
-0
No files found.
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/MsgBiz.java
View file @
9223361a
...
@@ -347,6 +347,7 @@ public class MsgBiz {
...
@@ -347,6 +347,7 @@ public class MsgBiz {
public
Msg
add
(
AddMsgParam
param
)
{
public
Msg
add
(
AddMsgParam
param
)
{
//去redis根据userId是否有数据
//去redis根据userId是否有数据
//设置一些列参数
//设置一些列参数
log
.
info
(
"后台添加消息: param = {}"
,
param
);
Msg
entity
=
Msg
.
build
(
param
.
getUserId
(),
param
.
getNickname
(),
param
);
Msg
entity
=
Msg
.
build
(
param
.
getUserId
(),
param
.
getNickname
(),
param
);
// 保存商务圈消息
// 保存商务圈消息
mongoTemplate
.
save
(
entity
);
mongoTemplate
.
save
(
entity
);
...
@@ -354,6 +355,7 @@ public class MsgBiz {
...
@@ -354,6 +355,7 @@ public class MsgBiz {
if
(!
StringUtils
.
isEmpty
(
param
.
getMusicId
())){
if
(!
StringUtils
.
isEmpty
(
param
.
getMusicId
())){
updateUseCount
(
new
ObjectId
(
param
.
getMusicId
()));
updateUseCount
(
new
ObjectId
(
param
.
getMusicId
()));
}
}
if
(
null
!=
param
.
getUserRemindLook
()){
if
(
null
!=
param
.
getUserRemindLook
()){
if
(
null
!=
param
.
getUserNotLook
()){
if
(
null
!=
param
.
getUserNotLook
()){
List
<
Integer
>
collect
=
param
.
getUserRemindLook
().
stream
().
filter
(
item
->
param
.
getUserNotLook
().
contains
(
item
)).
collect
(
Collectors
.
toList
());
List
<
Integer
>
collect
=
param
.
getUserRemindLook
().
stream
().
filter
(
item
->
param
.
getUserNotLook
().
contains
(
item
)).
collect
(
Collectors
.
toList
());
...
...
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