|
@@ -123,8 +123,11 @@ public class CustomerServiceBatchSendingServiceImpl extends ServiceImpl<Customer
|
|
|
// 群发消息记录
|
|
|
List<CustomerServiceBatchSendingWrapper.CustomerServiceBatchSending> sendings = baseMapper.selectPage(page, query);
|
|
|
|
|
|
- // 返回消息封闭
|
|
|
- getBatchSendingPaddingData(sendings);
|
|
|
+ if (CollectionUtils.isNotEmpty(sendings)) {
|
|
|
+
|
|
|
+ // 返回消息封闭
|
|
|
+ getBatchSendingPaddingData(sendings);
|
|
|
+ }
|
|
|
|
|
|
return page.setRecords(sendings);
|
|
|
}
|
|
@@ -459,7 +462,7 @@ public class CustomerServiceBatchSendingServiceImpl extends ServiceImpl<Customer
|
|
|
.eq(CustomerServiceBatchSending::getId, info.getId())
|
|
|
.set(CustomerServiceBatchSending::getSendStatus, EImSendStatus.SEND)
|
|
|
.set(CustomerServiceBatchSending::getReceiveNumber, receiveNums.stream().mapToInt(Integer::intValue).sum())
|
|
|
- .set(CustomerServiceBatchSending::getSendTime, Optional.ofNullable(info.getSendTime()).orElse(DateTime.now().toDate()))
|
|
|
+ .set(CustomerServiceBatchSending::getSendTime, DateTime.now().toDate())
|
|
|
.update();
|
|
|
|
|
|
} catch (Exception e) {
|
|
@@ -526,8 +529,10 @@ public class CustomerServiceBatchSendingServiceImpl extends ServiceImpl<Customer
|
|
|
|
|
|
if (StringUtils.isNotEmpty(info.getImgMessage())) {
|
|
|
|
|
|
+ //String suffix = info.getImgMessage().substring(info.getImgMessage().lastIndexOf("."));
|
|
|
+
|
|
|
// 发送图片消息
|
|
|
- ImgMessage imgMessage = new ImgMessage(ImUtil.imageToBase64(info.getImgMessage(), "png"), "", info.getImgUrl());
|
|
|
+ ImgMessage imgMessage = new ImgMessage(ImUtil.imageToBase64(info.getImgMessage(), "png"), "", info.getImgMessage());
|
|
|
|
|
|
messages.add(imgMessage);
|
|
|
}
|