| | |
| | | * 备注说明 |
| | | */ |
| | | public static void sendSubscribeJLDZ(String openId, String accessToken, String name, BigDecimal amount, |
| | | String remark) { |
| | | String remark,String templateId) { |
| | | WxSubscribeDTO subscribeDTO = new WxSubscribeDTO(); |
| | | subscribeDTO.setTouser(openId); |
| | | subscribeDTO.setTemplate_id(WxSubscribeConstants.JLFF_ID); |
| | | subscribeDTO.setTemplate_id(templateId); |
| | | List<TemplateParam> paras = new ArrayList<TemplateParam>(); |
| | | paras.add(new TemplateParam("thing1", name));// 活动名称 |
| | | paras.add(new TemplateParam("amount3", amount.toString()));// 奖励金额 |
| | |
| | | * 审核结果 |
| | | */ |
| | | public static void sendSubscribeRZSH(String openId, String accessToken, String name, String applyTime, |
| | | String result) { |
| | | String result,String templateId) { |
| | | WxSubscribeDTO subscribeDTO = new WxSubscribeDTO(); |
| | | subscribeDTO.setTouser(openId); |
| | | subscribeDTO.setTemplate_id(WxSubscribeConstants.EZSH_ID); |
| | | subscribeDTO.setTemplate_id(templateId); |
| | | List<TemplateParam> paras = new ArrayList<TemplateParam>(); |
| | | paras.add(new TemplateParam("thing2", name));// 认证内容 |
| | | paras.add(new TemplateParam("phrase1", result));// 审核结果 |
| | |
| | | * 审核时间 |
| | | */ |
| | | public static void sendSubscribeSHZT(String openId, String accessToken, String name, String applyTime, |
| | | String result) { |
| | | String result,String templateId) { |
| | | WxSubscribeDTO subscribeDTO = new WxSubscribeDTO(); |
| | | subscribeDTO.setTouser(openId); |
| | | subscribeDTO.setTemplate_id(WxSubscribeConstants.SHZT_ID); |
| | | subscribeDTO.setTemplate_id(templateId); |
| | | List<TemplateParam> paras = new ArrayList<TemplateParam>(); |
| | | paras.add(new TemplateParam("thing1", name));// 审核项目 |
| | | paras.add(new TemplateParam("phrase2", result));// 审核状态 |
| | |
| | | * @param time |
| | | * 活动时间 |
| | | */ |
| | | public static void sendSubscribeHDQX(String openId, String accessToken, String name, String time) { |
| | | public static void sendSubscribeHDQX(String openId, String accessToken, String name, String time,String templateId) { |
| | | WxSubscribeDTO subscribeDTO = new WxSubscribeDTO(); |
| | | subscribeDTO.setTouser(openId); |
| | | subscribeDTO.setTemplate_id(WxSubscribeConstants.HDQX_ID); |
| | | subscribeDTO.setTemplate_id(templateId); |
| | | List<TemplateParam> paras = new ArrayList<TemplateParam>(); |
| | | paras.add(new TemplateParam("thing1", name));// 活动标题 |
| | | paras.add(new TemplateParam("date2", time));// 活动时间 |
| | |
| | | * @param content |
| | | * 回复内容 |
| | | */ |
| | | public static void sendSubscribeLYHF(String openId, String accessToken, String name, String time, String content) { |
| | | public static void sendSubscribeLYHF(String openId, String accessToken, String name, String time, String content,String templateId) { |
| | | WxSubscribeDTO subscribeDTO = new WxSubscribeDTO(); |
| | | subscribeDTO.setTouser(openId); |
| | | subscribeDTO.setTemplate_id(WxSubscribeConstants.LYHF_ID); |
| | | subscribeDTO.setTemplate_id(templateId); |
| | | List<TemplateParam> paras = new ArrayList<TemplateParam>(); |
| | | paras.add(new TemplateParam("thing3", content));// 回复内容 |
| | | paras.add(new TemplateParam("name1", name));// 回复者 |
| | |
| | | * 活动地点 |
| | | */ |
| | | public static void sendSubscribeHDBG(String openId, String accessToken, String name, String changeTime, |
| | | String changeAddress, String time, String address) { |
| | | String changeAddress, String time, String address,String templateId) { |
| | | WxSubscribeDTO subscribeDTO = new WxSubscribeDTO(); |
| | | subscribeDTO.setTouser(openId); |
| | | subscribeDTO.setTemplate_id(WxSubscribeConstants.HDBG_ID); |
| | | subscribeDTO.setTemplate_id(templateId); |
| | | List<TemplateParam> paras = new ArrayList<TemplateParam>(); |
| | | paras.add(new TemplateParam("thing1", name));// 活动名称 |
| | | paras.add(new TemplateParam("time2", changeTime));// 活动时间变更 |
| | |
| | | * 活动参加人数 |
| | | */ |
| | | public static void sendSubscribeHDJJKS(String openId, String accessToken, String name, String time, String address, |
| | | String num) { |
| | | String num,String templateId) { |
| | | WxSubscribeDTO subscribeDTO = new WxSubscribeDTO(); |
| | | subscribeDTO.setTouser(openId); |
| | | subscribeDTO.setTemplate_id(WxSubscribeConstants.HDJJKS_ID); |
| | | subscribeDTO.setTemplate_id(templateId); |
| | | List<TemplateParam> paras = new ArrayList<TemplateParam>(); |
| | | paras.add(new TemplateParam("thing1", name));// 活动名称 |
| | | paras.add(new TemplateParam("date2", time));// 活动时间 |
| | |
| | | * @param name 预约人 |
| | | * @param time 预约时间 |
| | | */ |
| | | public static void sendSubscribeYYTX(String openId, String accessToken, String result, String title, String name,String time){ |
| | | public static void sendSubscribeYYTX(String openId, String accessToken, String result, String title, String name,String time,String templateId){ |
| | | WxSubscribeDTO subscribeDTO = new WxSubscribeDTO(); |
| | | subscribeDTO.setTouser(openId); |
| | | subscribeDTO.setTemplate_id(WxSubscribeConstants.YYTX_ID); |
| | | subscribeDTO.setTemplate_id(templateId); |
| | | List<TemplateParam> paras=new ArrayList<TemplateParam>(); |
| | | paras.add(new TemplateParam("phrase8",result));//预约结果 |
| | | paras.add(new TemplateParam("thing23",title));//预约主题 |