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

[短信类型][修改][添加类型],[验证码短信][修改][修改短信类型]

release_toaliyun_real
gongbiao 7 лет назад
Родитель
Сommit
80f14c0093
3 измененных файлов: 10 добавлений и 5 удалений
  1. +3
    -2
      mallinkSchedule/src/main/java/com/iformall/schedule/BillNotificationSchedule.java
  2. +5
    -1
      mallinkService/src/main/java/com/iformall/enums/EnumMsgModel.java
  3. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxMsgValidationcodeServiceImpl.java

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

@@ -6,6 +6,7 @@ import com.iformall.domain.po.WxMsgCallback;
import com.iformall.domain.po.WxMsgConfig;
import com.iformall.domain.po.WxMsgValidationcode;
import com.iformall.domain.po.WxMsgValidationcodeModel;
import com.iformall.enums.EnumMsgModel;
import com.iformall.enums.EnumMsgSendStatus;
import com.iformall.enums.EnumVerifyCode;
import com.iformall.mapper.*;
@@ -71,7 +72,7 @@ public class BillNotificationSchedule {
WxMsgConfig wxMsgConfig = checkMsgConfig(tenantId);
if (wxMsgConfig != null) {
logger.info("欠缴账单获取模板内容");
WxMsgValidationcodeModel wxMsgValidationcodeModel = getMsgModel(tenantId, 7);
WxMsgValidationcodeModel wxMsgValidationcodeModel = getMsgModel(tenantId, EnumMsgModel.BILL_OWE.getCode());
if (wxMsgValidationcodeModel != null) {
String signature = wxMsgValidationcodeModel.getSignature();
String msg = wxMsgValidationcodeModel.getContent().
@@ -102,7 +103,7 @@ public class BillNotificationSchedule {
WxMsgConfig wxMsgConfig = checkMsgConfig(tenantId);
if (wxMsgConfig != null) {
logger.info("待缴账单获取模板内容");
WxMsgValidationcodeModel wxMsgValidationcodeModel = getMsgModel(tenantId, 7);
WxMsgValidationcodeModel wxMsgValidationcodeModel = getMsgModel(tenantId, EnumMsgModel.BILL_WAIT_PAY.getCode());
if (wxMsgValidationcodeModel != null) {
String signature = wxMsgValidationcodeModel.getSignature();
String msg = wxMsgValidationcodeModel.getContent().


+ 5
- 1
mallinkService/src/main/java/com/iformall/enums/EnumMsgModel.java Просмотреть файл

@@ -6,10 +6,14 @@ package com.iformall.enums;
*/
public enum EnumMsgModel {
// type,name
MALL_APPLY(1, "申请试用"),
FLOW_ASSIGNEE_NODIFY(2, "代办通知"),
FLOW_APPLY_NODIFY(3, "审批通知"),
FLOW_PASS_NODIFY(4, "通过审批通知"),
FLOW_REJECT_NODIFY(5, "驳回通知")
FLOW_REJECT_NODIFY(5, "驳回通知"),
VALIDATION_CODE(6, "B端验证码"),
BILL_WAIT_PAY(7, "账单待缴通知"),
BILL_OWE(8, "账单欠缴通知")
;

public static EnumMsgModel getEnum(Integer code) {


+ 2
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxMsgValidationcodeServiceImpl.java Просмотреть файл

@@ -8,6 +8,7 @@ import com.iformall.common.IdWorker;
import com.iformall.common.Result;
import com.iformall.common.ResultData;
import com.iformall.domain.po.*;
import com.iformall.enums.EnumMsgModel;
import com.iformall.enums.EnumMsgSendStatus;
import com.iformall.enums.EnumVerifyCode;
import com.iformall.mapper.*;
@@ -156,8 +157,7 @@ public class WxMsgValidationcodeServiceImpl implements WxMsgValidationcodeServic

WxMsgValidationcodeModel wxMsgValidationcodeModel = new WxMsgValidationcodeModel();
wxMsgValidationcodeModel.setTenantId(wxMsgConfig.getTenantId());
wxMsgValidationcodeModel.setType(wxMsgValidationcode.getType());
wxMsgValidationcodeModel.setName("验证码");
wxMsgValidationcodeModel.setType(EnumMsgModel.VALIDATION_CODE.getCode());
wxMsgValidationcodeModel = wxMsgValidationcodeModelMapper.findList(wxMsgValidationcodeModel).get(0);
wxMsgValidationcode.setSignature(wxMsgValidationcodeModel.getSignature());



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