|
|
|
@@ -60,7 +60,7 @@ public class BillNotificationSchedule { |
|
|
|
|
|
|
|
private void sendOweBill() { |
|
|
|
logger.info("查询欠缴账单数据"); |
|
|
|
List<Map<String, Object>> oweBillList = wxBillAllMapper.getOWeBill(); |
|
|
|
List<Map<String, Object>> oweBillList = wxBillAllMapper.getOweBill(); |
|
|
|
for (Map<String, Object> bill : oweBillList) { |
|
|
|
logger.info("欠缴账单:" + JSONObject.toJSONString(bill)); |
|
|
|
String tenantId = bill.get("tenantId").toString(); |
|
|
|
@@ -76,7 +76,7 @@ public class BillNotificationSchedule { |
|
|
|
if (wxMsgValidationcodeModel != null) { |
|
|
|
String signature = wxMsgValidationcodeModel.getSignature(); |
|
|
|
String msg = wxMsgValidationcodeModel.getContent(). |
|
|
|
replace("{price}", String.valueOf(price.doubleValue())). |
|
|
|
replace("{price}", price.toString()). |
|
|
|
replace("{app}", appname); |
|
|
|
String notifyUrl = wxMsgConfig.getNotifyurl(); |
|
|
|
String secret = wxMsgConfig.getSecret(); |
|
|
|
@@ -107,7 +107,7 @@ public class BillNotificationSchedule { |
|
|
|
if (wxMsgValidationcodeModel != null) { |
|
|
|
String signature = wxMsgValidationcodeModel.getSignature(); |
|
|
|
String msg = wxMsgValidationcodeModel.getContent(). |
|
|
|
replace("{price}", String.valueOf(price.doubleValue())). |
|
|
|
replace("{price}", price.toString()). |
|
|
|
replace("{date}", receiveDate). |
|
|
|
replace("{app}", appname); |
|
|
|
String notifyUrl = wxMsgConfig.getNotifyurl(); |
|
|
|
@@ -138,10 +138,15 @@ public class BillNotificationSchedule { |
|
|
|
} |
|
|
|
|
|
|
|
private WxMsgValidationcodeModel getMsgModel(String tenantId, Integer type) { |
|
|
|
logger.info("获取通知模板-租户:" + tenantId + ",类型:" + type); |
|
|
|
WxMsgValidationcodeModel wxMsgValidationcodeModel = new WxMsgValidationcodeModel(); |
|
|
|
wxMsgValidationcodeModel.setTenantId(tenantId); |
|
|
|
wxMsgValidationcodeModel.setType(type); |
|
|
|
return wxMsgValidationcodelModelMapper.findList(wxMsgValidationcodeModel).get(0); |
|
|
|
List<WxMsgValidationcodeModel> list = wxMsgValidationcodelModelMapper.findList(wxMsgValidationcodeModel); |
|
|
|
if (!list.isEmpty()) { |
|
|
|
return wxMsgValidationcodelModelMapper.findList(wxMsgValidationcodeModel).get(0); |
|
|
|
} |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
private void sendWaitPayBillMsg(String phone, String signature, String msg, String notifyUrl, String secret, String bid, String publickey) { |
|
|
|
|