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 10ffd282
authored
Nov 04, 2021
by
孙喜旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复任务宝发送失败问题
1 parent
3b7de57c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerMessageServiceImpl.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeTaskFissionServiceImpl.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerMessageServiceImpl.java
View file @
10ffd28
...
@@ -100,7 +100,8 @@ public class WeCustomerMessageServiceImpl extends ServiceImpl<WeCustomerMessageM
...
@@ -100,7 +100,8 @@ public class WeCustomerMessageServiceImpl extends ServiceImpl<WeCustomerMessageM
//发给客户
//发给客户
if
(
CollectionUtils
.
isNotEmpty
(
customers
)){
if
(
CollectionUtils
.
isNotEmpty
(
customers
)){
customers
.
stream
().
collect
(
Collectors
.
groupingBy
(
WeCustomer:
:
getFirstUserId
)).
forEach
((
k
,
v
)->{
customers
.
stream
().
filter
(
customer
->
StringUtils
.
isNotEmpty
(
customer
.
getFirstUserId
()))
.
collect
(
Collectors
.
groupingBy
(
WeCustomer:
:
getFirstUserId
)).
forEach
((
k
,
v
)->{
customerMessagePushDto
.
setStaffId
(
k
);
customerMessagePushDto
.
setStaffId
(
k
);
//发送群发消息
//发送群发消息
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeTaskFissionServiceImpl.java
View file @
10ffd28
package
com
.
linkwechat
.
wecom
.
service
.
impl
;
package
com
.
linkwechat
.
wecom
.
service
.
impl
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.date.DateUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
...
@@ -210,10 +211,9 @@ public class WeTaskFissionServiceImpl extends ServiceImpl<WeTaskFissionMapper, W
...
@@ -210,10 +211,9 @@ public class WeTaskFissionServiceImpl extends ServiceImpl<WeTaskFissionMapper, W
linkMessageDto
.
setUrl
(
pageUrlBuilder
.
toString
());
linkMessageDto
.
setUrl
(
pageUrlBuilder
.
toString
());
CustomerMessagePushDto
customerMessagePushDto
=
new
CustomerMessagePushDto
();
CustomerMessagePushDto
customerMessagePushDto
=
new
CustomerMessagePushDto
();
// if (weTaskFission.getStartTime() != null) {
if
(
weTaskFission
.
getStartTime
()
!=
null
)
{
// customerMessagePushDto.setSettingTime(DateUtil.formatDateTime(weTaskFission.getStartTime()));
customerMessagePushDto
.
setSettingTime
(
DateUtil
.
formatDateTime
(
weTaskFission
.
getStartTime
()));
// }
}
customerMessagePushDto
.
setSendNow
(
true
);
customerMessagePushDto
.
setLinkMessage
(
linkMessageDto
);
customerMessagePushDto
.
setLinkMessage
(
linkMessageDto
);
customerMessagePushDto
.
setPushType
(
"0"
);
customerMessagePushDto
.
setPushType
(
"0"
);
customerMessagePushDto
.
setPushRange
(
"1"
);
customerMessagePushDto
.
setPushRange
(
"1"
);
...
...
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