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
0ee90bd8
Commit
0ee90bd8
authored
Jun 06, 2022
by
吴星煌
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/feature-cluster' into feature-cluster
parents
f66f9905
8a0d6b41
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
config/src/main/resources/config/application-dev.yml
+2
-1
core/src/main/java/com/wecloud/im/service/impl/ImConversationServiceImpl.java
+5
-5
core/src/main/resources/mapper/ImConversationMapper.xml
+2
-2
No files found.
config/src/main/resources/config/application-dev.yml
View file @
0ee90bd8
...
@@ -20,7 +20,8 @@ spring:
...
@@ -20,7 +20,8 @@ spring:
# password: 123456
# password: 123456
# 测试外网
# 测试外网
url
:
jdbc:mysql://124.71.83.11:3306/wecloud_im?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
# url: jdbc:mysql://124.71.83.11:3306/wecloud_im?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
url
:
jdbc:mysql://121.37.22.224:3306/wecloud_im_feature_cluster?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
username
:
root
username
:
root
password
:
temple123456
password
:
temple123456
...
...
core/src/main/java/com/wecloud/im/service/impl/ImConversationServiceImpl.java
View file @
0ee90bd8
...
@@ -821,12 +821,12 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
...
@@ -821,12 +821,12 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
}
}
// 根据top进行排序
// 根据top进行排序
List
<
ConversationVo
>
topList
=
myImConversationListAndMsgCount
.
stream
().
filter
(
ConversationVo:
:
getTop
).
collect
(
Collectors
.
toList
());
//
List<ConversationVo> topList = myImConversationListAndMsgCount.stream().filter(ConversationVo::getTop).collect(Collectors.toList());
List
<
ConversationVo
>
normalList
=
//
List<ConversationVo> normalList =
myImConversationListAndMsgCount
.
stream
().
filter
(
vo
->
!
vo
.
getTop
()).
collect
(
Collectors
.
toList
());
//
myImConversationListAndMsgCount.stream().filter(vo -> !vo.getTop()).collect(Collectors.toList());
myImConversationListAndMsgCount
=
new
ArrayList
<>(
topList
);
//
myImConversationListAndMsgCount = new ArrayList<>(topList);
myImConversationListAndMsgCount
.
addAll
(
normalList
);
//
myImConversationListAndMsgCount.addAll(normalList);
// 返回的
// 返回的
List
<
ConversationVo
>
myImConversationListAndMsgCountNew
=
new
ArrayList
<>();
List
<
ConversationVo
>
myImConversationListAndMsgCountNew
=
new
ArrayList
<>();
...
...
core/src/main/resources/mapper/ImConversationMapper.xml
View file @
0ee90bd8
...
@@ -39,8 +39,8 @@
...
@@ -39,8 +39,8 @@
imConversation.head_portrait,
imConversation.head_portrait,
imConversation.is_encrypt isEncrypt,
imConversation.is_encrypt isEncrypt,
im_client.client_id AS creator,
im_client.client_id AS creator,
imConversationMembers.is_top as top,
--
imConversationMembers.is_top as top,
imConversationMembers.is_do_not_disturb as do_not_disturb,
--
imConversationMembers.is_do_not_disturb as do_not_disturb,
(SELECT COUNT(im_inbox.id)
(SELECT COUNT(im_inbox.id)
FROM im_inbox
FROM im_inbox
WHERE im_inbox.fk_conversation_id = imConversation.id
WHERE im_inbox.fk_conversation_id = imConversation.id
...
...
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