소스 검색

[账单短信通知][修改][发送短信]

release_toaliyun_real
gongbiao 7 년 전
부모
커밋
0b6b280dab
2개의 변경된 파일11개의 추가작업 그리고 8개의 파일을 삭제
  1. +9
    -4
      mallinkSchedule/src/main/java/com/iformall/schedule/BillNotificationSchedule.java
  2. +2
    -4
      mallinkService/src/main/java/com/iformall/mapper/WxBillAllMapper.java

+ 9
- 4
mallinkSchedule/src/main/java/com/iformall/schedule/BillNotificationSchedule.java 파일 보기

@@ -60,7 +60,7 @@ public class BillNotificationSchedule {


private void sendOweBill() { private void sendOweBill() {
logger.info("查询欠缴账单数据"); logger.info("查询欠缴账单数据");
List<Map<String, Object>> oweBillList = wxBillAllMapper.getOWeBill();
List<Map<String, Object>> oweBillList = wxBillAllMapper.getOweBill();
for (Map<String, Object> bill : oweBillList) { for (Map<String, Object> bill : oweBillList) {
logger.info("欠缴账单:" + JSONObject.toJSONString(bill)); logger.info("欠缴账单:" + JSONObject.toJSONString(bill));
String tenantId = bill.get("tenantId").toString(); String tenantId = bill.get("tenantId").toString();
@@ -76,7 +76,7 @@ public class BillNotificationSchedule {
if (wxMsgValidationcodeModel != null) { if (wxMsgValidationcodeModel != null) {
String signature = wxMsgValidationcodeModel.getSignature(); String signature = wxMsgValidationcodeModel.getSignature();
String msg = wxMsgValidationcodeModel.getContent(). String msg = wxMsgValidationcodeModel.getContent().
replace("{price}", String.valueOf(price.doubleValue())).
replace("{price}", price.toString()).
replace("{app}", appname); replace("{app}", appname);
String notifyUrl = wxMsgConfig.getNotifyurl(); String notifyUrl = wxMsgConfig.getNotifyurl();
String secret = wxMsgConfig.getSecret(); String secret = wxMsgConfig.getSecret();
@@ -107,7 +107,7 @@ public class BillNotificationSchedule {
if (wxMsgValidationcodeModel != null) { if (wxMsgValidationcodeModel != null) {
String signature = wxMsgValidationcodeModel.getSignature(); String signature = wxMsgValidationcodeModel.getSignature();
String msg = wxMsgValidationcodeModel.getContent(). String msg = wxMsgValidationcodeModel.getContent().
replace("{price}", String.valueOf(price.doubleValue())).
replace("{price}", price.toString()).
replace("{date}", receiveDate). replace("{date}", receiveDate).
replace("{app}", appname); replace("{app}", appname);
String notifyUrl = wxMsgConfig.getNotifyurl(); String notifyUrl = wxMsgConfig.getNotifyurl();
@@ -138,10 +138,15 @@ public class BillNotificationSchedule {
} }


private WxMsgValidationcodeModel getMsgModel(String tenantId, Integer type) { private WxMsgValidationcodeModel getMsgModel(String tenantId, Integer type) {
logger.info("获取通知模板-租户:" + tenantId + ",类型:" + type);
WxMsgValidationcodeModel wxMsgValidationcodeModel = new WxMsgValidationcodeModel(); WxMsgValidationcodeModel wxMsgValidationcodeModel = new WxMsgValidationcodeModel();
wxMsgValidationcodeModel.setTenantId(tenantId); wxMsgValidationcodeModel.setTenantId(tenantId);
wxMsgValidationcodeModel.setType(type); 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) { private void sendWaitPayBillMsg(String phone, String signature, String msg, String notifyUrl, String secret, String bid, String publickey) {


+ 2
- 4
mallinkService/src/main/java/com/iformall/mapper/WxBillAllMapper.java 파일 보기

@@ -1,7 +1,5 @@
package com.iformall.mapper; package com.iformall.mapper;


import com.iformall.common.CommonMapper;
import com.iformall.domain.po.MallPermission;
import com.iformall.domain.vo.WxBillAll; import com.iformall.domain.vo.WxBillAll;


import java.util.List; import java.util.List;
@@ -10,7 +8,7 @@ import java.util.Map;
/** /**
* @author gongbiao * @author gongbiao
*/ */
public interface WxBillAllMapper extends CommonMapper<MallPermission, Long> {
public interface WxBillAllMapper {




List<Map<String,Object>> list(WxBillAll record); List<Map<String,Object>> list(WxBillAll record);
@@ -23,6 +21,6 @@ public interface WxBillAllMapper extends CommonMapper<MallPermission, Long> {


List<Map<String, Object>> getWaitPayBill(); List<Map<String, Object>> getWaitPayBill();


List<Map<String, Object>> getOWeBill();
List<Map<String, Object>> getOweBill();


} }

불러오는 중...
취소
저장