|
|
|
@@ -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()); |
|
|
|
|