Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
61279daa
Commit
61279daa
authored
Dec 17, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
群
parent
3300e802
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
GroupChatServiceImpl.java
...anage/service/service/chat/impl/GroupChatServiceImpl.java
+15
-10
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatServiceImpl.java
View file @
61279daa
...
@@ -412,6 +412,13 @@ public class GroupChatServiceImpl implements GroupChatService {
...
@@ -412,6 +412,13 @@ public class GroupChatServiceImpl implements GroupChatService {
}
}
}
}
private
String
emoji
(
String
content
)
{
if
(
StringUtils
.
isBlank
(
content
))
{
return
content
;
}
return
EmojiParser
.
removeAllEmojis
(
content
);
}
private
void
updateGroupChatDetail
(
WxEnterpriseQwDTO
qwDTO
,
TabGroupChat
chat
,
boolean
syncMember
)
{
private
void
updateGroupChatDetail
(
WxEnterpriseQwDTO
qwDTO
,
TabGroupChat
chat
,
boolean
syncMember
)
{
// 控制同时刷新
// 控制同时刷新
Long
groupChatId
=
chat
.
getGroupChatId
();
Long
groupChatId
=
chat
.
getGroupChatId
();
...
@@ -425,14 +432,8 @@ public class GroupChatServiceImpl implements GroupChatService {
...
@@ -425,14 +432,8 @@ public class GroupChatServiceImpl implements GroupChatService {
return
;
return
;
}
}
GroupChatDetailDTO
detail
=
detailResp
.
getResult
();
GroupChatDetailDTO
detail
=
detailResp
.
getResult
();
String
chatName
=
detail
.
getName
();
String
chatName
=
this
.
emoji
(
detail
.
getName
());
if
(
StringUtils
.
isNotBlank
(
chatName
))
{
String
notice
=
this
.
emoji
(
detail
.
getNotice
());
chatName
=
EmojiParser
.
removeAllEmojis
(
chatName
);
}
String
notice
=
detail
.
getNotice
();
if
(
StringUtils
.
isNotBlank
(
notice
))
{
notice
=
EmojiParser
.
removeAllEmojis
(
notice
);
}
chat
.
setGroupChatId
(
groupChatId
);
chat
.
setGroupChatId
(
groupChatId
);
chat
.
setChatAddTime
(
new
Date
(
detail
.
getCreate_time
()
*
1000
));
chat
.
setChatAddTime
(
new
Date
(
detail
.
getCreate_time
()
*
1000
));
chat
.
setChatNotice
(
notice
);
chat
.
setChatNotice
(
notice
);
...
@@ -507,6 +508,8 @@ public class GroupChatServiceImpl implements GroupChatService {
...
@@ -507,6 +508,8 @@ public class GroupChatServiceImpl implements GroupChatService {
List
<
GroupChatUserIdDTO
>
adminList
=
detail
.
getAdmin_list
();
List
<
GroupChatUserIdDTO
>
adminList
=
detail
.
getAdmin_list
();
List
<
String
>
adminIdList
=
adminList
.
stream
().
map
(
dto
->
dto
.
getUserid
()).
collect
(
Collectors
.
toList
());
List
<
String
>
adminIdList
=
adminList
.
stream
().
map
(
dto
->
dto
.
getUserid
()).
collect
(
Collectors
.
toList
());
for
(
GroupChatDetailMemberDTO
member
:
memberList
)
{
for
(
GroupChatDetailMemberDTO
member
:
memberList
)
{
String
userName
=
this
.
emoji
(
member
.
getName
());
String
nickName
=
this
.
emoji
(
member
.
getGroup_nickname
());
String
userId
=
member
.
getUserid
();
String
userId
=
member
.
getUserid
();
TabGroupChatUser
user
=
userMap
.
get
(
userId
);
TabGroupChatUser
user
=
userMap
.
get
(
userId
);
if
(
null
!=
user
)
{
if
(
null
!=
user
)
{
...
@@ -523,6 +526,8 @@ public class GroupChatServiceImpl implements GroupChatService {
...
@@ -523,6 +526,8 @@ public class GroupChatServiceImpl implements GroupChatService {
if
(
user
.
getUserType
()
==
3
)
{
if
(
user
.
getUserType
()
==
3
)
{
totalMemberCount
++;
totalMemberCount
++;
}
}
user
.
setUserName
(
userName
);
user
.
setNickName
(
nickName
);
this
.
groupChatUserMapper
.
update
(
user
);
this
.
groupChatUserMapper
.
update
(
user
);
continue
;
continue
;
}
}
...
@@ -538,8 +543,8 @@ public class GroupChatServiceImpl implements GroupChatService {
...
@@ -538,8 +543,8 @@ public class GroupChatServiceImpl implements GroupChatService {
user
.
setEnterpriseId
(
enterpriseId
);
user
.
setEnterpriseId
(
enterpriseId
);
user
.
setUserType
(
member
.
getType
());
user
.
setUserType
(
member
.
getType
());
user
.
setJoinTime
(
new
Date
(
member
.
getJoin_time
()
*
1000
));
user
.
setJoinTime
(
new
Date
(
member
.
getJoin_time
()
*
1000
));
user
.
setUserName
(
member
.
getName
()
);
user
.
setUserName
(
userName
);
user
.
setNickName
(
member
.
getGroup_nickname
()
);
user
.
setNickName
(
nickName
);
user
.
setGroupChatId
(
groupChatId
);
user
.
setGroupChatId
(
groupChatId
);
user
.
setUserId
(
userId
);
user
.
setUserId
(
userId
);
user
.
setJoinScene
(
member
.
getJoin_scene
());
user
.
setJoinScene
(
member
.
getJoin_scene
());
...
...
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