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
52e962d4
Commit
52e962d4
authored
Dec 21, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
群活码数量
parent
4b818034
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
HmLinkChatServiceImpl.java
...manage/service/service/hm/impl/HmLinkChatServiceImpl.java
+5
-4
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/impl/HmLinkChatServiceImpl.java
View file @
52e962d4
...
...
@@ -50,7 +50,11 @@ public class HmLinkChatServiceImpl implements HmLinkChatService {
List
<
HmLinkChatDTO
>
updateList
=
list
.
stream
().
filter
(
dto
->
null
!=
dto
.
getLinkChatId
())
.
collect
(
Collectors
.
toList
());
List
<
Long
>
notDelIdList
=
updateList
.
stream
().
map
(
dto
->
dto
.
getChatHmId
()).
collect
(
Collectors
.
toList
());
log
.
info
(
"不删除={},{}"
,
linkId
,
notDelIdList
);
log
.
info
(
"不删除关联群活码={},{}"
,
linkId
,
notDelIdList
);
String
wxEnterpriseId
=
list
.
get
(
0
).
getWxEnterpriseId
();
String
enterpriseId
=
list
.
get
(
0
).
getEnterpriseId
();
// 先查出历史记录
List
<
HmLinkChatDTO
>
oldList
=
this
.
hmLinkChatMapper
.
listByLinkId
(
wxEnterpriseId
,
enterpriseId
,
linkId
);
this
.
hmLinkChatMapper
.
delete
(
linkId
,
notDelIdList
);
if
(
CollectionUtils
.
isNotEmpty
(
updateList
))
{
for
(
HmLinkChatDTO
item
:
updateList
)
{
...
...
@@ -82,9 +86,6 @@ public class HmLinkChatServiceImpl implements HmLinkChatService {
idList
.
add
(
link
.
getOtherChatHmId
());
}
// 统计活码关联的链接数量
String
wxEnterpriseId
=
list
.
get
(
0
).
getWxEnterpriseId
();
String
enterpriseId
=
list
.
get
(
0
).
getEnterpriseId
();
List
<
HmLinkChatDTO
>
oldList
=
this
.
hmLinkChatMapper
.
listByLinkId
(
wxEnterpriseId
,
enterpriseId
,
linkId
);
for
(
HmLinkChatDTO
old
:
oldList
)
{
idList
.
add
(
old
.
getChatHmId
());
}
...
...
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