|
|
|
@@ -85,26 +85,9 @@ public class BillNotificationSchedule { |
|
|
|
BigDecimal price = needPay.divide(new BigDecimal(100)).setScale(2, RoundingMode.HALF_EVEN); |
|
|
|
String phone = bill.get("linkPhone").toString(); |
|
|
|
String appname = bill.get("appname").toString(); |
|
|
|
String merchantName = bill.get("merchantName").toString(); |
|
|
|
logger.info("待缴账单检验短信配置信息"); |
|
|
|
|
|
|
|
// WxMsgConfig wxMsgConfig = checkMsgConfig(tenantId); |
|
|
|
// if (wxMsgConfig != null) { |
|
|
|
// logger.info("待缴账单获取模板内容"); |
|
|
|
// WxMsgValidationcodeModel wxMsgValidationcodeModel = getMsgModel(tenantId, EnumMsgModel.BILL_WAIT_PAY.getCode()); |
|
|
|
// if (wxMsgValidationcodeModel != null) { |
|
|
|
// String signature = wxMsgValidationcodeModel.getSignature(); |
|
|
|
// String msg = wxMsgValidationcodeModel.getContent(). |
|
|
|
// replace("{price}", price.toString()). |
|
|
|
// replace("{date}", receiveDate). |
|
|
|
// replace("{app}", appname); |
|
|
|
// String notifyUrl = wxMsgConfig.getNotifyurl(); |
|
|
|
// String secret = wxMsgConfig.getSecret(); |
|
|
|
// String bid = wxMsgConfig.getBid(); |
|
|
|
// String publickey = wxMsgConfig.getPublickey(); |
|
|
|
// sendWaitPayBillMsg(phone, signature, msg, notifyUrl, secret, bid, publickey); |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
WxMsgRecord wxMsgRecord = new WxMsgRecord(); |
|
|
|
wxMsgRecord.setMsgType(EnumMsgRecordType.SMS.getCode()); |
|
|
|
wxMsgRecord.setModelType(EnumMsgModel.BILL_WAIT_PAY.getCode()); |
|
|
|
@@ -114,6 +97,7 @@ public class BillNotificationSchedule { |
|
|
|
map.put("price",price.toString()); |
|
|
|
map.put("app",appname); |
|
|
|
map.put("date",receiveDate); |
|
|
|
map.put("merName",merchantName); |
|
|
|
wxMsgRecord.setDynamicContentMap(map); |
|
|
|
mqBaseProducer.sendMessage(wxMsgRecord, EnumMsgMqTopic.DEFAULT.getCode(),EnumMsgMqTag.DEFAULT.getCode(),EnumMsgMqKey.DEFAULT.getCode()); |
|
|
|
} |
|
|
|
|