Commit 1a3919466a0ab49ffc9d4ef4f1ba5ddca759c9a6
1 parent
c23f9e6bf3
Exists in
master
and in
6 other branches
历史检查检验没有数据修改
Showing 2 changed files with 36 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/hospitalapi/Cdfy/CdfyHisService.java
View file @
1a39194
| ... | ... | @@ -110,6 +110,39 @@ |
| 110 | 110 | |
| 111 | 111 | return vcCardNo; |
| 112 | 112 | } |
| 113 | + public String getIdByVcCardNo2(String vcCardNo, String phone, String cardNo){ | |
| 114 | + String id = null; | |
| 115 | + String url = "http://10.0.200.2:9090/his/getCdFyIdByVcCardNo2?vcCardNo="+vcCardNo+"&phone="+phone+"&cardNo="+cardNo; | |
| 116 | + DefaultHttpClient client = new DefaultHttpClient(new PoolingClientConnectionManager()); | |
| 117 | + try { | |
| 118 | + HttpPost httpPost = new HttpPost(url); | |
| 119 | + /*StringEntity se = new StringEntity(vcCardNo,"UTF-8"); | |
| 120 | + se.setContentType("text/json"); | |
| 121 | + httpPost.setEntity(se);*/ | |
| 122 | + //执行post请求 | |
| 123 | + HttpResponse respon = client.execute(httpPost); | |
| 124 | + if(respon != null && respon.getStatusLine().getStatusCode() == 200){ | |
| 125 | + String result= EntityUtils.toString(respon.getEntity()); | |
| 126 | + System.out.print(result); | |
| 127 | + // 生成 JSON 对象 | |
| 128 | + JSONObject obj = JSONObject.parseObject(result); | |
| 129 | + if(obj!=null){ | |
| 130 | + id = obj.getString("id"); | |
| 131 | + } | |
| 132 | + return id == null ? vcCardNo : id; | |
| 133 | + }else{ | |
| 134 | + System.out.println("传输失败!"); | |
| 135 | + } | |
| 136 | + }catch (Exception e){ | |
| 137 | + ExceptionUtils.catchException(e,"承德就诊卡号获取病人id异常"); | |
| 138 | + return vcCardNo; | |
| 139 | + } | |
| 140 | + finally { | |
| 141 | + client.close(); | |
| 142 | + } | |
| 143 | + | |
| 144 | + return vcCardNo; | |
| 145 | + } | |
| 113 | 146 | |
| 114 | 147 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/LisFacade.java
View file @
1a39194
| ... | ... | @@ -284,7 +284,7 @@ |
| 284 | 284 | Patients patients = list.get(0); |
| 285 | 285 | patientsQuery.setPid(patients.getPid()); |
| 286 | 286 | patientsQuery.setVcCardNo(null); |
| 287 | - patientsQuery.setHospitalId(null); | |
| 287 | + patientsQuery.setHospitalId(hospitalId); | |
| 288 | 288 | patientsQuery.setPv(null); |
| 289 | 289 | |
| 290 | 290 | //通过上面就诊号查询到的人的所有建档记录 包括其他医院的建档记录 |
| ... | ... | @@ -401,7 +401,8 @@ |
| 401 | 401 | //承德查询lis |
| 402 | 402 | else if ("2100001291".equals(model.getHospitalId())) { |
| 403 | 403 | //model.setVcCardNo(vcCardNo); |
| 404 | - model.setVcCardNo(cdfyHisService.getIdByVcCardNo(vcCardNo)); | |
| 404 | +// model.setVcCardNo(cdfyHisService.getIdByVcCardNo(vcCardNo)); | |
| 405 | + model.setVcCardNo(cdfyHisService.getIdByVcCardNo2(vcCardNo,phone,cardNo)); | |
| 405 | 406 | } |
| 406 | 407 | //威县人民医院lis |
| 407 | 408 | else if ("199".equals(model.getHospitalId())) { |