diff --git a/pom.xml b/pom.xml index 107be3249..309394dd5 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ 4.0.0 manage - 1.0.28 + 1.0.29 UTF-8 diff --git a/src/main/java/au/com/royalpay/payment/manage/dev/listeners/CloseOrderWarningSender.java b/src/main/java/au/com/royalpay/payment/manage/dev/listeners/CloseOrderWarningSender.java index d8f059410..f85c0f044 100644 --- a/src/main/java/au/com/royalpay/payment/manage/dev/listeners/CloseOrderWarningSender.java +++ b/src/main/java/au/com/royalpay/payment/manage/dev/listeners/CloseOrderWarningSender.java @@ -93,7 +93,7 @@ public class CloseOrderWarningSender implements ApplicationListener developers = managerMapper.listDetailsByRole(null, ManagerRole.DEVELOPER.getMask()); + List developers = managerMapper.listDetailsByRole(null, ManagerRole.DEVELOPER.getMask() | ManagerRole.RISK_MANAGER.getMask()); if (!StringUtils.isEmpty(client.getString("bd_user"))) { String[] bds = client.getString("bd_user").split(","); if (bds.length > 0) { @@ -133,6 +133,9 @@ public class CloseOrderWarningSender implements ApplicationListener developers = managerMapper.listDetailsByRole(null, ManagerRole.DEVELOPER.getMask()); + List developers = managerMapper.listDetailsByRole(null, ManagerRole.DEVELOPER.getMask() | ManagerRole.RISK_MANAGER.getMask()); MpWechatApi api = mpWechatApiProvider.getNewPaymentApi(); for (JSONObject developer : developers) { if(developer.getString("manager_id").equals("141")){ continue; } + if (StringUtils.isBlank(developer.getString("wx_openid"))) { + continue; + } try { String wxOpenid = developer.getString("wx_openid"); if (wxOpenid != null) { @@ -124,7 +127,8 @@ public class PaymentAmountCheatMonitor implements CheatMonitor { TemplateMessage msg = WarningSenderHelper.buildWarningMessage(wxOpenid, templateId, title, content, client.getString("bd_user_name")); api.sendTemplateMessage(msg); } - } catch (Exception ignore) { + } catch (Exception e) { + logger.info("sendTemplateMessage--发送告警模板消息发生错误" + developer.getString("wx_openid") + "--" + e); } } }