| | |
| | | log.error("危险人员订阅消息推送失败,失败原因:" + e.getMessage()); |
| | | } |
| | | } |
| | | public static void sendUuWash(String openId, String accessToken, String status,String washerName,String washerMobile,String templateId){ |
| | | WxSubscribeDTO subscribeDTO = new WxSubscribeDTO(); |
| | | subscribeDTO.setTouser(openId); |
| | | subscribeDTO.setTemplate_id(templateId); |
| | | subscribeDTO.setPage("packageD/pages/washer/order/index"); |
| | | List<TemplateParam> paras=new ArrayList<TemplateParam>(); |
| | | paras.add(new TemplateParam("phrase6", "订单状态:"+status)); |
| | | paras.add(new TemplateParam("thing9", washerName)); |
| | | paras.add(new TemplateParam("thing1","车美信息")); |
| | | paras.add(new TemplateParam("thing4", "社区报备数据统计")); |
| | | subscribeDTO.setTemplateParamList(paras); |
| | | try { |
| | | sendSubscribe(accessToken,subscribeDTO); |
| | | }catch (Exception e){ |
| | | log.error("危险人员订阅消息推送失败,失败原因:" + e.getMessage()); |
| | | } |
| | | } |
| | | public static void main(String[] args) { |
| | | |
| | | WxXCXTempSend util = new WxXCXTempSend(); |
| | |
| | | public R checkExport(@RequestParam("account")String account,@RequestParam("password")String password,@RequestParam("oldPassword")String oldPassword){ |
| | | return userService.checkExport(account,password,oldPassword); |
| | | } |
| | | @GetMapping("/uuPush") |
| | | public R uuPush(@RequestParam("phone")String phone,@RequestParam("orderStatus")Integer orderStatus){ |
| | | return userService.uuPush(phone,orderStatus); |
| | | } |
| | | } |
| | |
| | | R checkExport(@RequestParam("account")String account, @RequestParam("password")String password,@RequestParam("oldPassword")String oldPassword); |
| | | |
| | | R newIndexData(Integer type, Long streetId); |
| | | |
| | | /** |
| | | * uu洗车通知推送 |
| | | * @param phone |
| | | * @param orderStatus |
| | | * @return |
| | | */ |
| | | R uuPush(@RequestParam("phone")String phone,@RequestParam("orderStatus")Integer orderStatus); |
| | | } |
| | |
| | | return R.ok(vo); |
| | | } |
| | | |
| | | @Override |
| | | public R uuPush(String phone, Integer orderStatus) { |
| | | if(StringUtils.isNotEmpty(phone)){ |
| | | SysUserDO sysUserDO=userDao.selectOne(new QueryWrapper<SysUserDO>().lambda().eq(SysUserDO::getPhone,phone).orderByDesc(SysUserDO::getCreateAt).last("limit 1")); |
| | | if(sysUserDO!=null&&StringUtils.isNotEmpty(sysUserDO.getOpenid())){ |
| | | WxUtil |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * 获取最近20天数据 |
| | | * |