[Y] 指定退款审核人

master
Tayl0r 7 years ago
parent c228696136
commit f9d4a39cf1

@ -7,6 +7,7 @@ import au.com.royalpay.payment.tools.connections.mpsupport.MpWechatApi;
import au.com.royalpay.payment.tools.connections.mpsupport.MpWechatApiProvider; import au.com.royalpay.payment.tools.connections.mpsupport.MpWechatApiProvider;
import au.com.royalpay.payment.tools.connections.mpsupport.beans.TemplateMessage; import au.com.royalpay.payment.tools.connections.mpsupport.beans.TemplateMessage;
import au.com.royalpay.payment.tools.env.PlatformEnvironment; import au.com.royalpay.payment.tools.env.PlatformEnvironment;
import au.com.royalpay.payment.tools.env.SysConfigManager;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@ -29,6 +30,8 @@ public class NoticeRefundReviewListener implements ApplicationListener<NewRefund
private ManagerMapper managerMapper; private ManagerMapper managerMapper;
@Resource @Resource
private MpWechatApiProvider mpWechatApiProvider; private MpWechatApiProvider mpWechatApiProvider;
@Resource
private SysConfigManager sysConfigManager;
@Override @Override
public void onApplicationEvent(NewRefundReviewEvent event) { public void onApplicationEvent(NewRefundReviewEvent event) {
@ -42,10 +45,10 @@ public class NoticeRefundReviewListener implements ApplicationListener<NewRefund
} }
//风控团队接收 //风控团队接收
List<JSONObject> accounts = managerMapper.listRiskManagers(); String openidStrings = sysConfigManager.getSysConfig().getString("refund_audit_notice_people");
for (JSONObject account : accounts) { String[] openids = openidStrings.split(",");
String wechatOpenid = account.getString("wx_openid"); for (String openid : openids) {
sendRefundAuditNotify(event, client, operator, wechatOpenid); sendRefundAuditNotify(event, client, operator, openid);
} }
} }

Loading…
Cancel
Save