| | |
| | | orderStateMsgVo.setTouser(info.getOpenId());//用户的openId |
| | | orderStateMsgVo.setTemplate_id(info.getTemplateId());//订阅消息模板id |
| | | orderStateMsgVo.setPage(info.getPage()); |
| | | Map<String, WxTemplateData> m = new HashMap<>(4); |
| | | m.put("character_string2", new WxTemplateData(info.getOrderNo())); |
| | | m.put("thing11", new WxTemplateData(info.getGoodsName())); |
| | | m.put("amount1", new WxTemplateData(info.getAmount())); |
| | | m.put("character_string9", new WxTemplateData(info.getTakeCode())); |
| | | Map<String, WxTemplateData> m = new HashMap<>(5); |
| | | m.put("thing4.DATA", new WxTemplateData(info.getAddressArea())); |
| | | m.put("phone_number14.DATA", new WxTemplateData(info.getLeaderPhone())); |
| | | m.put("thing3.DATA", new WxTemplateData(info.getGoodsName())); |
| | | m.put("thing5.DATA", new WxTemplateData(info.getDetailAddress())); |
| | | m.put("thing15.DATA", new WxTemplateData(info.getRemark())); |
| | | orderStateMsgVo.setData(m); |
| | | String s = JSONUtil.toJsonStr(orderStateMsgVo); |
| | | log.info(s); |
| | |
| | | @Override |
| | | public List<String> getTemplateId() { |
| | | List<String> wxTemplates = new ArrayList<>(); |
| | | List<DataDictionaryCustom> wxTemplateList = dataDictionaryCustomMapper.selectDicByType(DataDictionaryEnum.WX_TEMPLATE_ID_ONE.getType()); |
| | | List<DataDictionaryCustom> wxTemplateList = dataDictionaryCustomMapper.selectDicByType(DataDictionaryEnum.WX_TEMPLATE_ID_THREE.getType()); |
| | | if(CollUtil.isNotEmpty(wxTemplateList)){ |
| | | for(DataDictionaryCustom dic : wxTemplateList){ |
| | | wxTemplates.add(dic.getValue()); |