| | |
| | | |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLEncoder; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | |
| | | @Override |
| | | public String sendSmsByOutCallNotConnect(String taskId,String time) { |
| | | String templateId = "2431012249882"; |
| | | // 查询符合当前时间外呼任务id集合 |
| | | String format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()); |
| | | List<String> taskIdList = smsTemplateService.getTaskIdListByTime(format); |
| | | if (taskIdList.size()>0) { |
| | | // 查询当前任务未接通的人员信息(包含水库编号) |
| | | List<Map<String, Object>> list = smsTemplateService.getNotConnectPatrolPersonList(taskId,null); |
| | | List<Map<String, Object>> list = smsTemplateService.getNotConnectPatrolPersonList(taskIdList, null); |
| | | SmsTemplate smsTemplate = smsTemplateService.getOne(new QueryWrapper<SmsTemplate>().eq("template_id", templateId)); |
| | | if (list.size()>0) { |
| | | List<Map<String, Object>> newList = new ArrayList<>(); |
| | |
| | | Integer count = smsRecordService.batchSaveSendRecord(smsRecordList); |
| | | // 返回 |
| | | return count.toString(); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | String taskId = bladeRedis.get(MinConstant.fill_info_prefix + callId); |
| | | // 判断 |
| | | if (null!=taskId && !taskId.equals("")){ |
| | | List<String> taskIdList = new ArrayList<>(); |
| | | taskIdList.add(taskId); |
| | | // 通过手机号和外呼任务id 查询水库人员信息 |
| | | list = smsTemplateService.getNotConnectPatrolPersonList(taskId,callId); |
| | | list = smsTemplateService.getNotConnectPatrolPersonList(taskIdList,callId); |
| | | // 查询是否填报 |
| | | CallNotFillRecord callNotFillRecordInfo = outCallClient.getCallNotFillRecordInfo(callId); |
| | | if (callNotFillRecordInfo != null){ |