Commit 156a5af1 by danmo

修复任务宝发送失败问题

1 parent 2c7c27a9
...@@ -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);
//发送群发消息 //发送群发消息
......
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");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!