|
|
@ -93,7 +93,7 @@ public class CloseOrderWarningSender implements ApplicationListener<OrderCloseEv
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
warningList.put(moniker, new Date());
|
|
|
|
warningList.put(moniker, new Date());
|
|
|
|
List<JSONObject> developers = managerMapper.listDetailsByRole(null, ManagerRole.DEVELOPER.getMask());
|
|
|
|
List<JSONObject> developers = managerMapper.listDetailsByRole(null, ManagerRole.DEVELOPER.getMask() | ManagerRole.RISK_MANAGER.getMask());
|
|
|
|
if (!StringUtils.isEmpty(client.getString("bd_user"))) {
|
|
|
|
if (!StringUtils.isEmpty(client.getString("bd_user"))) {
|
|
|
|
String[] bds = client.getString("bd_user").split(",");
|
|
|
|
String[] bds = client.getString("bd_user").split(",");
|
|
|
|
if (bds.length > 0) {
|
|
|
|
if (bds.length > 0) {
|
|
|
@ -133,6 +133,9 @@ public class CloseOrderWarningSender implements ApplicationListener<OrderCloseEv
|
|
|
|
if (developer.getString("manager_id").equals("141")) {
|
|
|
|
if (developer.getString("manager_id").equals("141")) {
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (StringUtils.isBlank(developer.getString("wx_openid"))) {
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
String title = client.getString("short_name") + "(" + moniker + ")";
|
|
|
|
String title = client.getString("short_name") + "(" + moniker + ")";
|
|
|
|
String content = "最近" + recentOrders.size() + "笔订单中有" + closed.size() + "笔关闭,占比" + percentage + "%;\r\n" + "最早一笔:"
|
|
|
|
String content = "最近" + recentOrders.size() + "笔订单中有" + closed.size() + "笔关闭,占比" + percentage + "%;\r\n" + "最早一笔:"
|
|
|
@ -144,7 +147,8 @@ public class CloseOrderWarningSender implements ApplicationListener<OrderCloseEv
|
|
|
|
"所属BD:" + client.getString("bd_user_name"));
|
|
|
|
"所属BD:" + client.getString("bd_user_name"));
|
|
|
|
api.sendTemplateMessage(msg);
|
|
|
|
api.sendTemplateMessage(msg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception ignore) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
logger.info("sendTemplateMessage--发送告警模板消息发生错误" + developer.getString("wx_openid") + "--" + e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|