| | |
| | | |
| | | for (ServiceSubtask serviceSubtask : selectServiceSubtaskList) { |
| | | //先判断一下,subIds是否为空,如果不为空,只执行subIds里的患者 |
| | | log.info("-----subIds的值为:{}", subIds); |
| | | if (CollectionUtils.isNotEmpty(subIds)) { |
| | | boolean contains = subIds.contains(serviceSubtask.getId()); |
| | | //如果contains不为true,说明当前的患者已经发送成功,直接循环下一个人就行 |
| | |
| | | sendMagParam.setPhone(serviceSubtask.getPhone()); |
| | | sendMagParam.setUrl(ip + ":" + req_path + "/xj?p=" + format); |
| | | sendMagParam.setContent("您好,邀请您填写出院宣教调查表,请点击" + sendMagParam.getUrl() + "查看。感谢您配合!"); |
| | | log.info("-----------sendMagParam的值为:{}", sendMagParam); |
| | | } |
| | | //短信还需要模板 |
| | | // Map<String, String> req = new HashMap<>(); |
| | |
| | | SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddhhmmsszzz"); // 输出日期格式 |
| | | strb.append("&send_time=" + dateFormat.format(new Date())); |
| | | String isSuccess = HttpUtil.postFormRequest(xhsmsPath, strb.toString()); |
| | | log.info("-----------sisSuccess的值为:{}", isSuccess); |
| | | if (StringUtils.isNotEmpty(isSuccess) && isSuccess.contains("200")) { |
| | | ServiceSubtaskRecord serviceSubtaskRecord = new ServiceSubtaskRecord(); |
| | | serviceSubtaskRecord.setTaskid(serviceSubtask.getTaskid().toString()); |