|  |  | 
 |  |  | import com.doumee.core.utils.DateUtil; | 
 |  |  | import com.doumee.core.utils.Http; | 
 |  |  | import com.doumee.core.utils.HttpsUtil; | 
 |  |  | import com.doumee.dao.business.MemberMapper; | 
 |  |  | import com.doumee.dao.business.VisitsMapper; | 
 |  |  | import com.doumee.dao.business.WxNoticeConfigMapper; | 
 |  |  | import com.doumee.dao.business.model.*; | 
 |  |  | 
 |  |  |                         wxUrlParams = Constants.WxUrlParams.VISIT_RECORD_USER; | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |                 String url = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), | 
 |  |  |                 String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), | 
 |  |  |                         wxUrlParams | 
 |  |  |                         ,visits.getId().toString()); | 
 |  |  |                 String jumpUrl = systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_QRCODE_PREFIX).getCode().replace( "${param}", url); | 
 |  |  |  | 
 |  |  |                  | 
 |  |  |                 String postUrL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token; | 
 |  |  |                 //整体参数map | 
 |  |  | 
 |  |  |                     paramMap.put("touser", openId); | 
 |  |  |                     paramMap.put("data", dataMap); | 
 |  |  |                     String response = HttpsUtil.postJson(postUrL, JSONObject.toJSONString(paramMap)); | 
 |  |  |                     log.warn("·==++--·推送微信模板信息跳转地址:{}·--++==·", jumpUrl); | 
 |  |  |                     if(StringUtils.isBlank(response)){ | 
 |  |  |                         log.warn("·==++--·推送微信模板信息:{}·--++==·", "失败"); | 
 |  |  |                     }else{ | 
 |  |  | 
 |  |  |                 if(Objects.isNull(wxNoticeConfig)){ | 
 |  |  |                     return; | 
 |  |  |                 } | 
 |  |  |                 String url = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), | 
 |  |  |                 String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), | 
 |  |  |                         Constants.WxUrlParams.HIDDEN_DANGER,hiddenDanger.getId().toString()); | 
 |  |  |                 String jumpUrl = systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_QRCODE_PREFIX).getCode().replace( "${param}", url); | 
 |  |  |  | 
 |  |  |  | 
 |  |  |                 String postUrL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token; | 
 |  |  |                 //整体参数map | 
 |  |  | 
 |  |  |                 if(Objects.isNull(wxNoticeConfig)){ | 
 |  |  |                     return; | 
 |  |  |                 } | 
 |  |  |                 String url = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), | 
 |  |  |                 String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), | 
 |  |  |                         Constants.WxUrlParams.HIDDEN_DANGER,hiddenDanger.getId().toString()); | 
 |  |  |                 String jumpUrl = systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_QRCODE_PREFIX).getCode().replace( "${param}", url); | 
 |  |  |  | 
 |  |  |  | 
 |  |  |                 String postUrL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token; | 
 |  |  |                 //整体参数map | 
 |  |  | 
 |  |  |                 thing13.put("value",Constants.equalsInteger(hiddenDanger.getStatus(),Constants.ONE)?"隐患已整改":"隐患已退回"); | 
 |  |  |                 //提交人 | 
 |  |  |                 Map<String, Object> thing10 = new HashMap<String,Object>(); | 
 |  |  |                 thing10.put("value",hiddenDanger.getCheckorName()); | 
 |  |  |                 thing10.put("value",hiddenDanger.getMemberName()); | 
 |  |  |                 //通知时间 | 
 |  |  |                 Map<String, Object> time16 = new HashMap<String,Object>(); | 
 |  |  |                 time16.put("value", DateUtil.getFomartDate(hiddenDanger.getDealTime(),"yyyy年MM月dd日 HH:mm:ss") ); | 
 |  |  | 
 |  |  |                 if(Objects.isNull(wxNoticeConfig)){ | 
 |  |  |                     return; | 
 |  |  |                 } | 
 |  |  |                 String url = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), | 
 |  |  |                 String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), | 
 |  |  |                         Constants.WxUrlParams.CAR_USE,carUseBook.getId().toString()); | 
 |  |  |                 String jumpUrl = systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_QRCODE_PREFIX).getCode().replace( "${param}", url); | 
 |  |  |  | 
 |  |  |                 String postUrL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token; | 
 |  |  |                 //整体参数map | 
 |  |  | 
 |  |  |                     paramMap.put("touser", openId); | 
 |  |  |                     paramMap.put("data", dataMap); | 
 |  |  |                     String response = HttpsUtil.postJson(postUrL, JSONObject.toJSONString(paramMap)); | 
 |  |  |                     log.warn("·==++--·推送微信模板信息:{}", jumpUrl); | 
 |  |  |                     if(StringUtils.isBlank(response)){ | 
 |  |  |                         log.warn("·==++--·推送微信模板信息:{}·--++==·", "失败"); | 
 |  |  |                     }else{ | 
 |  |  | 
 |  |  |      * @param openIds | 
 |  |  |      * @param sendType 0=申请人;1=审批人 | 
 |  |  |      */ | 
 |  |  |     public void  sendPlatformBookTemplateNotice(SystemDictDataBiz systemDictDataBiz,WxNoticeConfigMapper wxNoticeConfigMapper, PlatformBooks platformBooks, String objCode,String token, | 
 |  |  |                                        List<String> openIds,Integer sendType){ | 
 |  |  |     public void  sendPlatformBookTemplateNotice(SystemDictDataBiz systemDictDataBiz, WxNoticeConfigMapper wxNoticeConfigMapper, PlatformBooks platformBooks, String objCode, String token, | 
 |  |  |                                                 List<String> openIds, Integer sendType){ | 
 |  |  |         try{ | 
 |  |  |             if(CollectionUtils.isNotEmpty(openIds)){ | 
 |  |  |                 WxNoticeConfig wxNoticeConfig =  wxNoticeConfigMapper.selectOne(new QueryWrapper<WxNoticeConfig>().lambda().eq(WxNoticeConfig::getObjType,WxPlatConstants.platformBook) | 
 |  |  | 
 |  |  |                 if(!objCode.equals(WxPlatConstants.platformBookContent.platformBookUpload)){ | 
 |  |  |                     wxUrlParams = Constants.WxUrlParams.PLATFORM_BOOK; | 
 |  |  |                 } | 
 |  |  |                 String url = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), | 
 |  |  |                 String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), | 
 |  |  |                         wxUrlParams,platformBooks.getId().toString()); | 
 |  |  |                 String jumpUrl = systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_QRCODE_PREFIX).getCode().replace( "${param}", url); | 
 |  |  |  | 
 |  |  |                 String postUrL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token; | 
 |  |  |                 //整体参数map | 
 |  |  |                 Map<String, Object> paramMap = new HashMap<String, Object>(); | 
 |  |  | 
 |  |  |                     paramMap.put("touser", openId); | 
 |  |  |                     paramMap.put("data", dataMap); | 
 |  |  |                     String response = HttpsUtil.postJson(postUrL, JSONObject.toJSONString(paramMap)); | 
 |  |  |                     log.warn("·==++--·推送微信模板信息:{}", JSONObject.toJSONString(paramMap)); | 
 |  |  |                     if(StringUtils.isBlank(response)){ | 
 |  |  |                         log.warn("·==++--·推送微信模板信息:{}·--++==·", "失败"); | 
 |  |  |                     }else{ | 
 |  |  | 
 |  |  |                     return; | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 String url = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), | 
 |  |  |                 String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), | 
 |  |  |                         Constants.WxUrlParams.PLATFORM_JOB_DRIVER,platformJob.getId().toString()); | 
 |  |  |                 String jumpUrl = systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_QRCODE_PREFIX).getCode().replace( "${param}", url); | 
 |  |  |  | 
 |  |  |                 String postUrL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token; | 
 |  |  |                 //整体参数map | 
 |  |  | 
 |  |  |                     return; | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 String url = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), | 
 |  |  |                 String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), | 
 |  |  |                         Constants.WxUrlParams.PLATFORM_JOB_DRIVER,platformJob.getId().toString()); | 
 |  |  |                 String jumpUrl = systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_QRCODE_PREFIX).getCode().replace( "${param}", url); | 
 |  |  |  | 
 |  |  |                 String postUrL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token; | 
 |  |  |                 //整体参数map | 
 |  |  | 
 |  |  |                     return; | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 String url = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), | 
 |  |  |                 String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), | 
 |  |  |                         Constants.WxUrlParams.PLATFORM_JOB_DRIVER,platformJob.getId().toString()); | 
 |  |  |                 String jumpUrl = systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_QRCODE_PREFIX).getCode().replace( "${param}", url); | 
 |  |  |  | 
 |  |  |                 String postUrL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token; | 
 |  |  |                 //整体参数map | 
 |  |  | 
 |  |  |                 Map<String, Object> car_number3 = new HashMap<String,Object>(); | 
 |  |  |                 car_number3.put("value",platformJob.getCarCodeFront()); | 
 |  |  |                 //月台号 | 
 |  |  |                 Map<String, Object> character_string7 = new HashMap<String,Object>(); | 
 |  |  |                 character_string7.put("value", "A001"); | 
 |  |  |                 Map<String, Object> thing9 = new HashMap<String,Object>(); | 
 |  |  |                 thing9.put("value", platformJob.getPlatformName()); | 
 |  |  |                 //时间 | 
 |  |  |                 Map<String, Object> time4 = new HashMap<String,Object>(); | 
 |  |  |                 time4.put("value", DateUtil.getFomartDate(new Date(),"yyyy年MM月dd日 HH:mm:ss") ); | 
 |  |  |                 dataMap.put("const6",const6); | 
 |  |  |                 dataMap.put("car_number3",car_number3); | 
 |  |  |                 dataMap.put("character_string7",character_string7); | 
 |  |  |                 dataMap.put("thing9",thing9); | 
 |  |  |                 dataMap.put("time4",time4); | 
 |  |  |                 for (String openId:openIds) { | 
 |  |  |                     paramMap.clear(); |