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
d7a8e5cf
Commit
d7a8e5cf
authored
Mar 21, 2022
by
李晓钟
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/feature-cluster' into feature-cluster
parents
716bdd11
96d463b3
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
4 deletions
+6
-4
core/src/main/java/com/wecloud/im/friend/service/ImFriendService.java
+2
-0
core/src/main/java/com/wecloud/im/service/impl/ImConversationServiceImpl.java
+1
-0
core/src/main/java/com/wecloud/im/vo/ConversationVo.java
+2
-1
core/src/main/java/com/wecloud/im/ws/manager/ChannelManager.java
+0
-2
core/src/main/resources/mapper/ImConversationMapper.xml
+1
-1
No files found.
core/src/main/java/com/wecloud/im/friend/service/ImFriendService.java
View file @
d7a8e5cf
...
...
@@ -106,6 +106,7 @@ public class ImFriendService extends BaseServiceImpl<ImFriendMapper, ImFriend> {
}
else
{
my
.
setId
(
SnowflakeUtil
.
getId
());
my
.
setCreateTime
(
new
Date
());
my
.
setUpdateTime
(
new
Date
());
this
.
save
(
my
);
}
...
...
@@ -123,6 +124,7 @@ public class ImFriendService extends BaseServiceImpl<ImFriendMapper, ImFriend> {
}
else
{
friend
.
setId
(
SnowflakeUtil
.
getId
());
friend
.
setCreateTime
(
new
Date
());
friend
.
setUpdateTime
(
new
Date
());
this
.
save
(
friend
);
}
...
...
core/src/main/java/com/wecloud/im/service/impl/ImConversationServiceImpl.java
View file @
d7a8e5cf
...
...
@@ -1114,6 +1114,7 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
myImConversationListAndMsgCountNew
.
add
(
myconversationlistvo
);
}
log
.
info
(
"{} 查询加入的会话列表结果 {}"
,
currentClient
.
getClientId
(),
JSON
.
toJSONString
(
myImConversationListAndMsgCountNew
));
return
myImConversationListAndMsgCountNew
;
}
catch
(
Exception
e
)
{
log
.
info
(
"查询所有会话异常 "
,
e
);
...
...
core/src/main/java/com/wecloud/im/vo/ConversationVo.java
View file @
d7a8e5cf
...
...
@@ -22,7 +22,8 @@ import java.util.HashMap;
@Accessors
(
chain
=
true
)
@ApiModel
(
value
=
"MyConversationListVo"
)
public
class
ConversationVo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
-
4330507756623541941L
;
@ApiModelProperty
(
"会话id"
)
private
Long
id
;
...
...
core/src/main/java/com/wecloud/im/ws/manager/ChannelManager.java
View file @
d7a8e5cf
package
com
.
wecloud
.
im
.
ws
.
manager
;
import
com.wecloud.im.entity.ImApplication
;
import
com.wecloud.im.entity.ImClient
;
import
com.wecloud.im.ws.cache.UserStateListener
;
import
com.wecloud.im.ws.model.ClientInfo
;
import
com.wecloud.im.ws.utils.RedisUtils
;
...
...
core/src/main/resources/mapper/ImConversationMapper.xml
View file @
d7a8e5cf
...
...
@@ -22,7 +22,7 @@
</select>
<select
id=
"getMyImConversationListAndMsgCount"
resultType=
"com.wecloud.im.vo.ConversationVo"
>
SELECT imConversation.id,
SELECT imConversation.id
as id
,
imConversation.create_time,
imConversation.`name`,
imConversation.chat_type,
...
...
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