ruoyi-admin/src/main/java/com/ruoyi/web/component/RedisMqReceiver.java
@@ -305,6 +305,7 @@ serviceOutPath.setParam2(patid); serviceOutPath.setParam6(subId); serviceOutPath.setCreateTime(new Date()); serviceOutPath.setOrgid(serviceSubtask.getOrgid()); iServiceOutPathService.insertServiceOutPath(serviceOutPath); // sendMagParam.setUrl(ip + ":" + req_path + "/followvisit/particty?param1=" + taskId + "¶m2=" + patid + "¶m5=false"); //转成16进制 @@ -337,6 +338,7 @@ // serviceOutPath.setParam3(URLEncoder.encode(ivrTask1.getTaskName(), StandardCharsets.UTF_8.toString())); serviceOutPath.setParam3(ivrTask1.getTaskName()); serviceOutPath.setCreateTime(new Date()); serviceOutPath.setOrgid(serviceSubtask.getOrgid()); iServiceOutPathService.insertServiceOutPath(serviceOutPath); String format = String.format("%03X", serviceOutPath.getId()); serviceOutPath.setRadix(format); @@ -371,6 +373,7 @@ serviceOutPath.setParam6(subId); serviceOutPath.setParam3(ivrTask1.getTaskName()); serviceOutPath.setCreateTime(new Date()); serviceOutPath.setOrgid(serviceSubtask.getOrgid()); iServiceOutPathService.insertServiceOutPath(serviceOutPath); String format = String.format("%03X", serviceOutPath.getId()); serviceOutPath.setRadix(format); @@ -554,6 +557,7 @@ serviceOutPath.setParam1(taskId); serviceOutPath.setParam2(patid); serviceOutPath.setCreateTime(new Date()); serviceOutPath.setOrgid(serviceSubtask.getOrgid()); iServiceOutPathService.insertServiceOutPath(serviceOutPath); String format = String.format("%03X", serviceOutPath.getId()); serviceOutPath.setRadix(format); @@ -567,6 +571,7 @@ serviceOutPath.setParam2(patid); serviceOutPath.setParam3(ivrTask1.getTaskName()); serviceOutPath.setCreateTime(new Date()); serviceOutPath.setOrgid(serviceSubtask.getOrgid()); iServiceOutPathService.insertServiceOutPath(serviceOutPath); String format = String.format("%03X", serviceOutPath.getId()); serviceOutPath.setRadix(format); @@ -583,6 +588,7 @@ serviceOutPath.setParam2(patid); serviceOutPath.setParam3(ivrTask1.getTaskName()); serviceOutPath.setCreateTime(new Date()); serviceOutPath.setOrgid(serviceSubtask.getOrgid()); iServiceOutPathService.insertServiceOutPath(serviceOutPath); String format = String.format("%03X", serviceOutPath.getId()); serviceOutPath.setRadix(format); ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/SmsController.java
@@ -115,6 +115,7 @@ 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 + "填写。感谢您配合!"; @@ -179,6 +180,7 @@ 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()); ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceOutPathController.java
@@ -7,6 +7,7 @@ import com.ruoyi.common.core.domain.entity.SysUser; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.StringUtils; import com.ruoyi.common.utils.poi.ExcelUtil; import com.smartor.domain.BaseOrganization; import com.smartor.domain.ServiceOutPath; @@ -57,15 +58,6 @@ */ @PostMapping("/getInfoByParam") public AjaxResult param(@Param("param") String param) { SysUser user = getLoginUser().getUser(); String orgname = ""; String orgid = user.getOrgid(); if(orgid != null && !"".equals(orgid)){ BaseOrganization baseOrganization = new BaseOrganization(); List<BaseOrganization> orgids = baseOrganizationService.selectBaseOrganizationList(baseOrganization); orgname = orgids.get(0).getOrganizationName(); } ServiceOutPath serviceOutPath = new ServiceOutPath(); serviceOutPath.setRadix(param); List<ServiceOutPath> list = serviceOutPathService.selectServiceOutPathList(serviceOutPath); @@ -73,8 +65,15 @@ ServiceOutPath serviceOutPath1 = list.get(0); serviceOutPath1.setId(null); serviceOutPath1.setRadix(null); serviceOutPath1.setOrgid(orgid); serviceOutPath1.setOrgname(orgname); if(StringUtils.isNotEmpty(serviceOutPath1.getOrgid())){ BaseOrganization baseOrganization = new BaseOrganization(); baseOrganization.setOrgid(serviceOutPath1.getOrgid()); List<BaseOrganization> orgs = baseOrganizationService.selectBaseOrganizationList(baseOrganization); if(CollectionUtils.isNotEmpty(orgs)){ String orgname = orgs.get(0).getOrganizationName(); serviceOutPath1.setOrgname(orgname); } } return success(serviceOutPath1); } return success(null); smartor/src/main/java/com/smartor/domain/smsVO.java
@@ -28,4 +28,7 @@ @ApiModelProperty(value = "身份证号") private String idCard; @ApiModelProperty(value = "机构号") private String orgid; }