|  |  | 
 |  |  |  | 
 |  |  | import com.alibaba.fastjson.JSONObject; | 
 |  |  | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | 
 |  |  | import com.doumee.biz.system.SystemDictDataBiz; | 
 |  |  | import com.doumee.core.utils.Constants; | 
 |  |  | import com.doumee.core.utils.DateUtil; | 
 |  |  | import com.doumee.core.utils.HttpsUtil; | 
 |  |  | 
 |  |  |      * @param token | 
 |  |  |      * @param openIds | 
 |  |  |      */ | 
 |  |  |     public void  sendMeetingBookTemplateNotice(Bookings bookings,String tempId, String token, Set<String> openIds){ | 
 |  |  |     public void  sendMeetingBookTemplateNotice(SystemDictDataBiz systemDictDataBiz,Bookings bookings,String tempId, String token, Set<String> openIds){ | 
 |  |  |         if(CollectionUtils.isNotEmpty(openIds)){ | 
 |  |  |             String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), | 
 |  |  |                     Constants.WxUrlParams.MEETING,bookings.getId().toString()); | 
 |  |  |  | 
 |  |  |             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("data", dataMap); | 
 |  |  |             for (String openId:openIds) { | 
 |  |  |                 paramMap.clear(); | 
 |  |  |                 paramMap.put("url", jumpUrl); | 
 |  |  |                 paramMap.put("template_id", tempId); | 
 |  |  |                 paramMap.put("touser", openId); | 
 |  |  |                 paramMap.put("data", dataMap); | 
 |  |  | 
 |  |  |      * @param token | 
 |  |  |      * @param openIds | 
 |  |  |      */ | 
 |  |  |     public void  sendMeetingBookCancelTemplateNotice(Bookings bookings,String tempId, String token, Set<String> openIds){ | 
 |  |  |     public void  sendMeetingBookCancelTemplateNotice(SystemDictDataBiz systemDictDataBiz,Bookings bookings, String tempId, String token, Set<String> openIds){ | 
 |  |  |         if(CollectionUtils.isNotEmpty(openIds)){ | 
 |  |  |             String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), | 
 |  |  |                     Constants.WxUrlParams.MEETING,bookings.getId().toString()); | 
 |  |  |  | 
 |  |  |  | 
 |  |  |             String postUrL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token; | 
 |  |  |             //整体参数map | 
 |  |  |             Map<String, Object> paramMap = new HashMap<String, Object>(); | 
 |  |  | 
 |  |  |             thing1.put("value",bookings.getName()); | 
 |  |  |             //会议时间 | 
 |  |  |             Map<String, Object> time6 = new HashMap<String,Object>(); | 
 |  |  |             time6.put("value", DateUtil.getDate(bookings.getStartTime(),"yyyy-MM-dd HH:mm:ss") ); | 
 |  |  |             time6.put("value", DateUtil.getFomartDate(bookings.getStartTime(),"yyyy-MM-dd HH:mm:ss") ); | 
 |  |  |             //会议地点 | 
 |  |  |             Map<String, Object> thing2 = new HashMap<String,Object>(); | 
 |  |  |             thing2.put("value",bookings.getRoomName()); | 
 |  |  | 
 |  |  |             dataMap.put("time6",time6); | 
 |  |  |             dataMap.put("thing2",thing2); | 
 |  |  |             dataMap.put("thing4",thing4); | 
 |  |  |             paramMap.put("data", dataMap); | 
 |  |  |             for (String openId:openIds) { | 
 |  |  |                 paramMap.clear(); | 
 |  |  |                 paramMap.put("url", jumpUrl); | 
 |  |  |                 paramMap.put("data", dataMap); | 
 |  |  |                 paramMap.put("template_id", tempId); | 
 |  |  |                 paramMap.put("touser", openId); | 
 |  |  |                 paramMap.put("data", dataMap); |