Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
2e7f2be7
Commit
2e7f2be7
authored
Oct 17, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志
parent
df8c1536
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
core/src/main/java/com/wecloud/im/param/PrivateChatStatusMessageParam.java
+1
-1
core/src/main/java/com/wecloud/im/service/impl/ImMessageServiceImpl.java
+3
-2
No files found.
core/src/main/java/com/wecloud/im/param/PrivateChatStatusMessageParam.java
View file @
2e7f2be7
...
@@ -25,7 +25,7 @@ public class PrivateChatStatusMessageParam {
...
@@ -25,7 +25,7 @@ public class PrivateChatStatusMessageParam {
private
String
fromUserId
;
private
String
fromUserId
;
/**
/**
* 接收
群
id
* 接收
用户
id
*/
*/
@NotEmpty
(
message
=
"接收用户id不能为空"
)
@NotEmpty
(
message
=
"接收用户id不能为空"
)
@ApiModelProperty
(
"接收用户id"
)
@ApiModelProperty
(
"接收用户id"
)
...
...
core/src/main/java/com/wecloud/im/service/impl/ImMessageServiceImpl.java
View file @
2e7f2be7
...
@@ -945,11 +945,10 @@ public class ImMessageServiceImpl extends BaseServiceImpl<ImMessageMapper, ImMes
...
@@ -945,11 +945,10 @@ public class ImMessageServiceImpl extends BaseServiceImpl<ImMessageMapper, ImMes
// 获取收件人信息
// 获取收件人信息
List
<
ImClient
>
receiverList
=
imClientService
.
list
(
Wrappers
.<
ImClient
>
lambdaQuery
().
eq
(
ImClient:
:
getFkAppid
,
List
<
ImClient
>
receiverList
=
imClientService
.
list
(
Wrappers
.<
ImClient
>
lambdaQuery
().
eq
(
ImClient:
:
getFkAppid
,
appId
).
in
(
ImClient:
:
getClientId
,
toUserIdList
));
appId
).
in
(
ImClient:
:
getClientId
,
toUserIdList
));
Map
<
Long
,
ImClient
>
clientMapById
=
receiverList
.
stream
().
collect
(
Collectors
.
toMap
(
ImClient:
:
getId
,
Function
.
identity
()));
if
(
receiverList
.
isEmpty
())
{
if
(
receiverList
.
isEmpty
())
{
throw
new
BusinessException
(
"收件人列表为空"
);
throw
new
BusinessException
(
"收件人列表为空"
);
}
}
Map
<
Long
,
ImClient
>
clientMapById
=
receiverList
.
stream
().
collect
(
Collectors
.
toMap
(
ImClient:
:
getId
,
Function
.
identity
()));
// 查找conversation列表
// 查找conversation列表
Long
senderImClientId
=
sender
.
getId
();
Long
senderImClientId
=
sender
.
getId
();
...
@@ -957,6 +956,8 @@ public class ImMessageServiceImpl extends BaseServiceImpl<ImMessageMapper, ImMes
...
@@ -957,6 +956,8 @@ public class ImMessageServiceImpl extends BaseServiceImpl<ImMessageMapper, ImMes
List
<
ImConversation
>
conversationList
=
List
<
ImConversation
>
conversationList
=
imConversationService
.
getConversationBySenderAndReceivers
(
senderImClientId
,
receiverImClientIds
);
imConversationService
.
getConversationBySenderAndReceivers
(
senderImClientId
,
receiverImClientIds
);
log
.
info
(
"单人消息获取会话入参 {} {} 会话数量 {}"
,
senderImClientId
,
JSON
.
toJSONString
(
receiverImClientIds
),
conversationList
.
size
());
// 根据收件人imClientId对会话/会话成员进行分组
// 根据收件人imClientId对会话/会话成员进行分组
Set
<
Long
>
notExistConversationReceiverClientIds
=
new
HashSet
<>(
receiverImClientIds
);
Set
<
Long
>
notExistConversationReceiverClientIds
=
new
HashSet
<>(
receiverImClientIds
);
...
...
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