|
@@ -156,7 +156,11 @@ public class WeComHistoryDataJob {
|
|
|
StringBuilder stringBuilder = new StringBuilder();
|
|
|
stringBuilder.append(corpName).append("\n");
|
|
|
long allCount = 0;
|
|
|
- long notSend = 0;
|
|
|
+ long notSendCount = 0;
|
|
|
+ long successSendCount = 0;
|
|
|
+ long notFriendCount = 0;
|
|
|
+ long failSendCount = 0;
|
|
|
+
|
|
|
for (SendDetail sendDetail : sendDetailList) {
|
|
|
List<Long> sendCountList = sendDetail.getSendCountList();
|
|
|
if (CollectionUtils.isEmpty(sendCountList)) {
|
|
@@ -165,7 +169,10 @@ public class WeComHistoryDataJob {
|
|
|
stringBuilder.append(sendDetail.getRemark());
|
|
|
long count = sendCountList.get(0) + sendCountList.get(1) + sendCountList.get(2) + sendCountList.get(3);
|
|
|
allCount += count;
|
|
|
- notSend += sendCountList.get(0);
|
|
|
+ notSendCount += sendCountList.get(0);
|
|
|
+ successSendCount += sendCountList.get(1);
|
|
|
+ notFriendCount += sendCountList.get(2);
|
|
|
+ failSendCount += sendCountList.get(3);
|
|
|
if (count != 0 && sendCountList.get(0) > 0 && !specialStaffIdList.contains(sendDetail.getStaffId())) {
|
|
|
LarkRobotUtil.sendMessage(sendDetail.getRemark() + "存在未发送记录,请检查");
|
|
|
if (sendDetail.getStaffId() == 3) {
|
|
@@ -184,11 +191,18 @@ public class WeComHistoryDataJob {
|
|
|
stringBuilder.append("已经收到其他群发消息失败发送数量:").append(sendCountList.get(3)).append(" ");
|
|
|
stringBuilder.append("\n");
|
|
|
}
|
|
|
+ stringBuilder.append(corpName).append("汇总发送数量:").append(" ");
|
|
|
+ stringBuilder.append("总发送数量:").append(allCount).append(" ");
|
|
|
+ stringBuilder.append("未发送数量:").append(notSendCount).append(" ");
|
|
|
+ stringBuilder.append("已发送数量:").append(successSendCount).append(" ");
|
|
|
+ stringBuilder.append("不是好友发送失败数量:").append(notFriendCount).append(" ");
|
|
|
+ stringBuilder.append("已经收到其他群发消息失败发送数量:").append(failSendCount).append(" ");
|
|
|
+ stringBuilder.append("\n");
|
|
|
if (allCount > 0) {
|
|
|
LarkRobotUtil.sendMessage(stringBuilder.toString());
|
|
|
LarkRobotUtil.sendTipMessage(stringBuilder.toString());
|
|
|
}
|
|
|
- return notSend;
|
|
|
+ return notSendCount;
|
|
|
}
|
|
|
|
|
|
|