提交 152a06cb 作者: 沈振路

客服消息发送人数打印

上级 3190feb5
...@@ -107,7 +107,7 @@ public class CustomerGraphics implements Serializable { ...@@ -107,7 +107,7 @@ public class CustomerGraphics implements Serializable {
@TableLogic @TableLogic
private Integer isDeleted; private Integer isDeleted;
@TableField(value = "send_Num") @TableField(value = "send_num")
private Integer sendNum; private Integer sendNum;
public void updateCount(){ public void updateCount(){
...@@ -151,4 +151,4 @@ public class CustomerGraphics implements Serializable { ...@@ -151,4 +151,4 @@ public class CustomerGraphics implements Serializable {
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
return dateFormat.format(this.postTime); return dateFormat.format(this.postTime);
} }
} }
\ No newline at end of file
...@@ -264,6 +264,7 @@ public class CustomerGraphicsServiceImpl extends ServiceImpl<CustomerGraphicsMap ...@@ -264,6 +264,7 @@ public class CustomerGraphicsServiceImpl extends ServiceImpl<CustomerGraphicsMap
Map<String, List<ReferralEntityVo>> referralMap = referralList.stream().filter(a->StringUtils.isNotBlank(a.getReferral())).collect(Collectors.groupingBy(ReferralEntityVo::getAppid)); Map<String, List<ReferralEntityVo>> referralMap = referralList.stream().filter(a->StringUtils.isNotBlank(a.getReferral())).collect(Collectors.groupingBy(ReferralEntityVo::getAppid));
//循环该人群包下的所有素材 //循环该人群包下的所有素材
int singleUserCount = 0;
for (Map.Entry<String, List<CrowdPackageUserVO>> usersEntry : appidUserMap.entrySet()) { for (Map.Entry<String, List<CrowdPackageUserVO>> usersEntry : appidUserMap.entrySet()) {
String appid = usersEntry.getKey(); String appid = usersEntry.getKey();
...@@ -271,7 +272,7 @@ public class CustomerGraphicsServiceImpl extends ServiceImpl<CustomerGraphicsMap ...@@ -271,7 +272,7 @@ public class CustomerGraphicsServiceImpl extends ServiceImpl<CustomerGraphicsMap
List<ReferralEntityVo> referralEntityVo = referralMap.get(appid); List<ReferralEntityVo> referralEntityVo = referralMap.get(appid);
//获取该号的openid //获取该号的openid
List<CrowdPackageUserVO> packageUserVo = usersEntry.getValue(); List<CrowdPackageUserVO> packageUserVo = usersEntry.getValue();
singleUserCount += packageUserVo.size();
weChatService.sendCustomerMessage(appid,customerGraphics,packageUserVo,referralEntityVo); weChatService.sendCustomerMessage(appid,customerGraphics,packageUserVo,referralEntityVo);
}catch (Exception e){ }catch (Exception e){
...@@ -279,6 +280,7 @@ public class CustomerGraphicsServiceImpl extends ServiceImpl<CustomerGraphicsMap ...@@ -279,6 +280,7 @@ public class CustomerGraphicsServiceImpl extends ServiceImpl<CustomerGraphicsMap
} }
} }
LOCAL_LOG.info("id {} has user list size {}", customerGraphics.getId(), singleUserCount);
//客服状态修改 //客服状态修改
customerGraphics.setSendStatus(CustomerCommonConstant.SEND_STATUS_FINISHED); customerGraphics.setSendStatus(CustomerCommonConstant.SEND_STATUS_FINISHED);
LOCAL_LOG.info("{} finished:{}",customerGraphics.getId(),System.currentTimeMillis()); LOCAL_LOG.info("{} finished:{}",customerGraphics.getId(),System.currentTimeMillis());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论