Commit 0ee90bd8 by 吴星煌

Merge remote-tracking branch 'origin/feature-cluster' into feature-cluster

parents f66f9905 8a0d6b41
......@@ -20,7 +20,8 @@ spring:
# 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
password: temple123456
......
......@@ -821,12 +821,12 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
}
// 根据top进行排序
List<ConversationVo> topList = myImConversationListAndMsgCount.stream().filter(ConversationVo::getTop).collect(Collectors.toList());
List<ConversationVo> normalList =
myImConversationListAndMsgCount.stream().filter(vo -> !vo.getTop()).collect(Collectors.toList());
// List<ConversationVo> topList = myImConversationListAndMsgCount.stream().filter(ConversationVo::getTop).collect(Collectors.toList());
// List<ConversationVo> normalList =
// myImConversationListAndMsgCount.stream().filter(vo -> !vo.getTop()).collect(Collectors.toList());
myImConversationListAndMsgCount = new ArrayList<>(topList);
myImConversationListAndMsgCount.addAll(normalList);
// myImConversationListAndMsgCount = new ArrayList<>(topList);
// myImConversationListAndMsgCount.addAll(normalList);
// 返回的
List<ConversationVo> myImConversationListAndMsgCountNew = new ArrayList<>();
......
......@@ -39,8 +39,8 @@
imConversation.head_portrait,
imConversation.is_encrypt isEncrypt,
im_client.client_id AS creator,
imConversationMembers.is_top as top,
imConversationMembers.is_do_not_disturb as do_not_disturb,
-- imConversationMembers.is_top as top,
-- imConversationMembers.is_do_not_disturb as do_not_disturb,
(SELECT COUNT(im_inbox.id)
FROM im_inbox
WHERE im_inbox.fk_conversation_id = imConversation.id
......
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