Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2e8b3c14
authored
Oct 18, 2021
by
linkwechat8856@163.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复群发相关bug;整合后端应用token获取相关接口;
1 parent
e40e7e41
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerMessageServiceImpl.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerMessageServiceImpl.java
View file @
2e8b3c1
...
@@ -25,7 +25,10 @@ import org.apache.commons.collections4.CollectionUtils;
...
@@ -25,7 +25,10 @@ import org.apache.commons.collections4.CollectionUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.*
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
/**
/**
...
@@ -99,8 +102,7 @@ public class WeCustomerMessageServiceImpl extends ServiceImpl<WeCustomerMessageM
...
@@ -99,8 +102,7 @@ public class WeCustomerMessageServiceImpl extends ServiceImpl<WeCustomerMessageM
//发给客户
//发给客户
if
(
CollectionUtils
.
isNotEmpty
(
customers
)){
if
(
CollectionUtils
.
isNotEmpty
(
customers
)){
customers
.
stream
().
collect
(
Collectors
.
groupingBy
(
WeCustomer:
:
getUserId
)).
forEach
((
k
,
v
)->{
customers
.
stream
().
collect
(
Collectors
.
groupingBy
(
WeCustomer:
:
getFirstUserId
)).
forEach
((
k
,
v
)->{
customerMessagePushDto
.
setStaffId
(
k
);
customerMessagePushDto
.
setStaffId
(
k
);
//发送群发消息
//发送群发消息
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment