|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Constants.WxUrlParams wxUrlParams =  Constants.WxUrlParams.VISIT_REPORT_RECORD_USER; | 
|---|
|  |  |  | if(!Constants.equalsInteger(visits.getType(),Constants.TWO)){ | 
|---|
|  |  |  | if(objCode.equals(WxPlatConstants.visitContent.visitUpload)){ | 
|---|
|  |  |  | if(!objCode.equals(WxPlatConstants.visitContent.visitWaitAudit)){ | 
|---|
|  |  |  | wxUrlParams = Constants.WxUrlParams.VISIT_RECORD_VISIT; | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  | 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 | 
|---|
|  |  |  | 
|---|
|  |  |  | 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 | 
|---|
|  |  |  | 
|---|
|  |  |  | }else if(Constants.equalsInteger(platformBooks.getStatus(),Constants.TWO)){ | 
|---|
|  |  |  | const9.put("value","申请已审核通过"); | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  | const9.put("value","申请未通过"); | 
|---|
|  |  |  | const9.put("value","申请已审核驳回"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //车牌号 | 
|---|
|  |  |  | 
|---|
|  |  |  | 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> const6 = new HashMap<String,Object>(); | 
|---|
|  |  |  | const6.put("value",wxNoticeConfig.getTitile()); | 
|---|
|  |  |  | //车牌号 | 
|---|
|  |  |  | Map<String, Object> character_string1 = new HashMap<String,Object>(); | 
|---|
|  |  |  | character_string1.put("value",platformJob.getCarCodeFront()); | 
|---|
|  |  |  | Map<String, Object> car_number3 = new HashMap<String,Object>(); | 
|---|
|  |  |  | car_number3.put("value",platformJob.getCarCodeFront()); | 
|---|
|  |  |  | //月台号 | 
|---|
|  |  |  | Map<String, Object> thing3 = new HashMap<String,Object>(); | 
|---|
|  |  |  | thing3.put("value", platformJob.getPlatformName()); | 
|---|
|  |  |  | 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("character_string1",character_string1); | 
|---|
|  |  |  | dataMap.put("thing3",thing3); | 
|---|
|  |  |  | dataMap.put("car_number3",car_number3); | 
|---|
|  |  |  | dataMap.put("thing9",thing9); | 
|---|
|  |  |  | dataMap.put("time4",time4); | 
|---|
|  |  |  | for (String openId:openIds) { | 
|---|
|  |  |  | paramMap.clear(); | 
|---|
|  |  |  | 
|---|
|  |  |  | 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{ | 
|---|