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

[][修改][修改业态分析列表]

release_toaliyun_real
luozukai 6 лет назад
Родитель
Сommit
f9efa0a10f
2 измененных файлов: 22 добавлений и 8 удалений
  1. +6
    -0
      mallinkService/src/main/java/com/iformall/enums/EnumMailMsgModel.java
  2. +16
    -8
      mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java

+ 6
- 0
mallinkService/src/main/java/com/iformall/enums/EnumMailMsgModel.java Просмотреть файл

@@ -11,6 +11,12 @@ public enum EnumMailMsgModel {
MAIL_BILL_OWE(13, "欠缴账单通知"),
MAIL_ASSIGNEE_NODIFY(14, "代办通知"),
MAIL_REJECT_NODIFY(15, "驳回通知"),

//卷
MAIL_C_PASS_NODIFY(24, "审批通过通知"),
MAIL_C_APPLY_NODIFY(25, "审批通知"),
MAIL_C_ASSIGNEE_NODIFY(26, "代办通知"),
MAIL_C_REJECT_NODIFY(27, "驳回通知"),
;

public static EnumMailMsgModel getEnum(Integer code) {


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

@@ -444,8 +444,10 @@ public class WxFlowServiceImpl implements WxFlowService {
msgReplaceMap.put("bustype","账单");
msgReplaceMap.put("contract", businessId.toString());
}else if(isCoupon(flowType)){
msgReplaceMap.put("bustype","有价券");
msgReplaceMap.put("contract",businessId.toString());
mailMsg.setModelType(EnumMailMsgModel.MAIL_C_ASSIGNEE_NODIFY.getCode());
WxCoupon wxCoupon = this.wxCouponMapper.selectByPrimaryKey(businessId);
msgReplaceMap.put("type",EnumCouponType.getEnum(wxCoupon.getType()).getMessage());
msgReplaceMap.put("name",wxCoupon.getTitle());
}
mailMsg.setDynamicContentMap(msgReplaceMap);
mqBaseProducer.sendMessage(mailMsg, EnumMsgMqTopic.DEFAULT.getCode(), EnumMsgMqTag.DEFAULT.getCode(), EnumMsgMqKey.DEFAULT.getCode());
@@ -893,8 +895,10 @@ public class WxFlowServiceImpl implements WxFlowService {
msgReplaceMap.put("bustype","账单");
msgReplaceMap.put("contract", businessId.toString());
}else if(isCoupon(flowType)){
msgReplaceMap.put("bustype","有价券");
msgReplaceMap.put("contract",businessId.toString());
mailMsg.setModelType(EnumMailMsgModel.MAIL_C_APPLY_NODIFY.getCode());
WxCoupon wxCoupon = this.wxCouponMapper.selectByPrimaryKey(businessId);
msgReplaceMap.put("type",EnumCouponType.getEnum(wxCoupon.getType()).getMessage());
msgReplaceMap.put("name",wxCoupon.getTitle());
}
mailMsg.setDynamicContentMap(msgReplaceMap);
mqBaseProducer.sendMessage(mailMsg, EnumMsgMqTopic.DEFAULT.getCode(), EnumMsgMqTag.DEFAULT.getCode(), EnumMsgMqKey.DEFAULT.getCode());
@@ -949,8 +953,10 @@ public class WxFlowServiceImpl implements WxFlowService {
msgReplaceMap.put("bustype","账单");
msgReplaceMap.put("contract", businessId.toString());
}else if(isCoupon(flowType)){
msgReplaceMap.put("bustype","有价券");
msgReplaceMap.put("contract",businessId.toString());
mailMsg.setModelType(EnumMailMsgModel.MAIL_C_PASS_NODIFY.getCode());
WxCoupon wxCoupon = this.wxCouponMapper.selectByPrimaryKey(businessId);
msgReplaceMap.put("type",EnumCouponType.getEnum(wxCoupon.getType()).getMessage());
msgReplaceMap.put("name",wxCoupon.getTitle());
}
mailMsg.setDynamicContentMap(msgReplaceMap);
mqBaseProducer.sendMessage(mailMsg, EnumMsgMqTopic.DEFAULT.getCode(), EnumMsgMqTag.DEFAULT.getCode(), EnumMsgMqKey.DEFAULT.getCode());
@@ -1102,8 +1108,10 @@ public class WxFlowServiceImpl implements WxFlowService {
msgReplaceMap.put("bustype","账单");
msgReplaceMap.put("contract", businessId.toString());
}else if(isCoupon(flowType)){
msgReplaceMap.put("bustype","有价券");
msgReplaceMap.put("contract",businessId.toString());
mailMsg.setModelType(EnumMailMsgModel.MAIL_C_REJECT_NODIFY.getCode());
WxCoupon wxCoupon = this.wxCouponMapper.selectByPrimaryKey(businessId);
msgReplaceMap.put("type",EnumCouponType.getEnum(wxCoupon.getType()).getMessage());
msgReplaceMap.put("name",wxCoupon.getTitle());
}
mailMsg.setDynamicContentMap(msgReplaceMap);
mqBaseProducer.sendMessage(mailMsg, EnumMsgMqTopic.DEFAULT.getCode(), EnumMsgMqTag.DEFAULT.getCode(), EnumMsgMqKey.DEFAULT.getCode());


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