提交 152a06cb 作者: 沈振路

客服消息发送人数打印

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