|  |  | 
 |  |  | import com.doumee.biz.system.SystemDictDataBiz; | 
 |  |  | import com.doumee.core.constants.ResponseStatus; | 
 |  |  | import com.doumee.core.exception.BusinessException; | 
 |  |  | import com.doumee.core.model.PageData; | 
 |  |  | import com.doumee.core.model.PageWrap; | 
 |  |  | import com.doumee.service.business.third.model.PageData; | 
 |  |  | import com.doumee.service.business.third.model.PageWrap; | 
 |  |  | import com.doumee.core.utils.*; | 
 |  |  | import com.doumee.core.wx.wxPlat.WxPlatNotice; | 
 |  |  | import com.doumee.dao.business.*; | 
 |  |  | 
 |  |  |         List<SmsEmail> smsEmails = smsEmailMapper.selectList(wrapper); | 
 |  |  |         if(smsEmails!=null && smsEmails.size()>0){ | 
 |  |  |             for(SmsEmail model : smsEmails){ | 
 |  |  |                 if(Constants.equalsInteger(model.getType(),Constants.ONE)){ | 
 |  |  |                 if(Constants.equalsInteger(model.getType(),Constants.ZERO)){ | 
 |  |  |                     if(model.getPhone() == null){ | 
 |  |  |                         model.setStatus(Constants.THREE);//发送失败 | 
 |  |  |                         model.setRemark("手机号为空,取消任务发送!"); | 
 |  |  | 
 |  |  |                 }else if(Constants.equalsInteger(model.getType(),Constants.TWO)){ | 
 |  |  |                     if(DateUtil.fromStringToDate("yyyy-MM-dd HH:mm:ss",model.getInfo()).getTime() < System.currentTimeMillis()){ | 
 |  |  |                         WxPlatNotice wxPlatNotice = new WxPlatNotice(); | 
 |  |  |                         wxPlatNotice.sendMeetTemplateNotice(systemDictDataBiz,model,systemDictDataBiz.queryByCode(Constants.WX_PLATFORM, Constants.WX_PLATFORM_ACCESS_TOKEN).getCode()); | 
 |  |  |                         wxPlatNotice.sendMeetTemplateNotice(systemDictDataBiz,model); | 
 |  |  |                         model.setStatus(Constants.ONE);//发送成功 | 
 |  |  |                         model.setRemark("微信通知发送成功"); | 
 |  |  |                     }else{ | 
 |  |  | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 访客申请业务短信通知 | 
 |  |  |      * @param systemDictDataBiz | 
 |  |  | 
 |  |  |      * @param auditUser | 
 |  |  |      */ | 
 |  |  |     public static void sendHiddenDangerSms(SystemDictDataBiz systemDictDataBiz, EmayService emayService , com.doumee.dao.business.dao.SmsEmailMapper smsEmailMapper , SmsConfigMapper smsConfigMapper, | 
 |  |  |                                            HiddenDangerMapper hiddenDangerMapper, Integer objId, String objCode, List<String> auditUser){ | 
 |  |  |                                            HiddenDangerMapper hiddenDangerMapper, Integer objId, String objCode, List<String> auditUser,String hiddenParam){ | 
 |  |  |         try{ | 
 |  |  |             SmsConfig smsConfig = smsConfigMapper.selectOne(new QueryWrapper<SmsConfig>().lambda().eq(SmsConfig::getCode, | 
 |  |  |                     objCode).last(" limit 1 ")); | 
 |  |  |             //开启短信通知 | 
 |  |  |             if(Objects.nonNull(smsConfig) || Constants.equalsInteger(smsConfig.getStatus(),Constants.ZERO)){ | 
 |  |  |                 String content = systemDictDataBiz.queryByCode(Constants.SMS,Constants.SMS_COMNAME).getCode() + smsConfig.getContent(); | 
 |  |  |                 String content = systemDictDataBiz.queryByCode(Constants.SMS,Constants.SMS_COMNAME).getCode() + smsConfig.getContent().replace("{隐患类型}",hiddenParam); | 
 |  |  |                 HiddenDanger hiddenDanger = hiddenDangerMapper.selectById(objId); | 
 |  |  |                 //您有一条【隐患随手拍-消防隐患】需要处理,详细信息请前往微信公众号查看 | 
 |  |  |                 //您提交的【隐患随手拍-消防隐患】已经处理完毕,详细信息请前往微信公众号查看。 |