Commit 9223361a authored by jiaorz's avatar jiaorz

后台添加IM接口

parent 35e4382b
...@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment