Просмотр исходного кода

[胡][修改][开发优化合同需求]

release_toaliyun_real
luozukai 7 лет назад
Родитель
Сommit
8fffeb8eb5
3 измененных файлов: 4 добавлений и 1 удалений
  1. +1
    -0
      mallinkAdmin/src/main/resources/db/migration/V201905171800__L_ALTER_MSG.sql
  2. +2
    -0
      mallinkSchedule/src/main/java/com/iformall/schedule/BillNotificationSchedule.java
  3. +1
    -1
      mallinkService/src/main/resources/mapper/WxBillAllMapper.xml

+ 1
- 0
mallinkAdmin/src/main/resources/db/migration/V201905171800__L_ALTER_MSG.sql Просмотреть файл

@@ -0,0 +1 @@
update wx_msg_validationcode_model set content = '截止今日{merName}的账单共计欠缴{price}元,请登录{app}小程序查看账单并交费。' where type = 8

+ 2
- 0
mallinkSchedule/src/main/java/com/iformall/schedule/BillNotificationSchedule.java Просмотреть файл

@@ -57,6 +57,7 @@ public class BillNotificationSchedule {
BigDecimal price = owe.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("欠缴账单检验短信配置信息");

WxMsgRecord wxMsgRecord = new WxMsgRecord();
@@ -67,6 +68,7 @@ public class BillNotificationSchedule {
Map<String,String> map = new HashedMap();
map.put("price",price.toString());
map.put("app",appname);
map.put("merName",merchantName);
wxMsgRecord.setDynamicContentMap(map);
mqBaseProducer.sendMessage(wxMsgRecord, EnumMsgMqTopic.DEFAULT.getCode(),EnumMsgMqTag.DEFAULT.getCode(),EnumMsgMqKey.DEFAULT.getCode());
}


+ 1
- 1
mallinkService/src/main/resources/mapper/WxBillAllMapper.xml Просмотреть файл

@@ -348,7 +348,7 @@
<select id="getOweBill" resultType="hashmap">
select bill.tenant_id tenantId,bill.merchant_id merchantId,bill.owe,m.link_phone linkPhone,app.appname from (
select bill.tenant_id tenantId,bill.merchant_id merchantId,m.name merchantName,bill.owe,m.link_phone linkPhone,app.appname from (
select bill.tenant_id,bill.merchant_id,sum(owe) owe from (
select id,merchant_id,shop_id,tenant_id,'租金' name,1 bill_type_value,'租金'
bill_type,need_pay,receive_pay,pay,owe,DATE_FORMAT(receive_date,'%Y-%m-%d') receive_date,pay_date,expired_day,status,'' starttime,''


Загрузка…
Отмена
Сохранить