| | |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.sms.smsUtils; |
| | | import com.smartor.common.MtSubmitSmUtil; |
| | | import com.smartor.common.ShiyiSmsUtil; |
| | | import com.smartor.domain.ServiceOutPath; |
| | | import com.smartor.domain.ShiyiSmsRequest; |
| | | import com.smartor.domain.ShiyiSmsResponse; |
| | | import com.smartor.domain.smsVO; |
| | | import com.smartor.mapper.UtilsMapper; |
| | | import com.smartor.service.IServiceOutPathService; |
| | |
| | | |
| | | @Autowired |
| | | private MtSubmitSmUtil mtSubmitSmUtil; |
| | | |
| | | @Autowired |
| | | private ShiyiSmsUtil shiyiSmsUtil; |
| | | |
| | | @Value("${xhsmsAccount}") |
| | | private String xhsmsAccount; |
| | |
| | | return AjaxResult.success(sendMsg); |
| | | } |
| | | |
| | | @ApiOperation("市一HIS短信XML测试") |
| | | @PostMapping("/sendShiyiTest") |
| | | public AjaxResult sendShiyiTest(@RequestBody ShiyiSmsRequest request) { |
| | | try { |
| | | ShiyiSmsResponse response = shiyiSmsUtil.sendSms(request); |
| | | return AjaxResult.success(response); |
| | | } catch (Exception e) { |
| | | log.error("市一HIS短信XML测试失败", e); |
| | | return AjaxResult.error("市一HIS短信XML测试失败: " + e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * @param |
| | | * @return |
| | |
| | | serviceOutPath.setParam6(subId); |
| | | serviceOutPath.setRadix(format); |
| | | serviceOutPath.setCreateTime(new Date()); |
| | | serviceOutPath.setOrgid(vo.getOrgid()); |
| | | iServiceOutPathService.insertServiceOutPath(serviceOutPath); |
| | | String url = ip + ":" + req_path + "/wt?p=" + format; |
| | | content = "您好,邀请您填写出院调查表,请点击" + url + "填写。感谢您配合!"; |
| | |
| | | serviceOutPath.setParam6(subId); |
| | | serviceOutPath.setRadix(format); |
| | | serviceOutPath.setCreateTime(new Date()); |
| | | serviceOutPath.setOrgid(vo.getOrgid()); |
| | | iServiceOutPathService.insertServiceOutPath(serviceOutPath); |
| | | String url = ip + ":" + req_path + "/wt?p=" + format; |
| | | sendMsg = smsUtils.sendChat(url, vo.getPhone(), vo.getIdCard()); |
| | | } |
| | | return AjaxResult.success(sendMsg); |
| | | } |
| | | |
| | | |
| | | } |