Commit c894940b5c4f4cd695e47bb6930fdb720cf50742
1 parent
5818424a9e
Exists in
master
and in
6 other branches
承德换卡
Showing 2 changed files with 33 additions and 31 deletions
platform-operate-api/src/main/java/com/lyms/hospitalapi/Cdfy/CdfyHisService.java
View file @
c894940
| ... | ... | @@ -78,37 +78,39 @@ |
| 78 | 78 | * @return |
| 79 | 79 | */ |
| 80 | 80 | public String getIdByVcCardNo(String vcCardNo){ |
| 81 | - String id = null; | |
| 82 | - String url = "http://10.0.200.2:9090/his/getCdFyIdByVcCardNo?vcCardNo="+vcCardNo; | |
| 83 | - DefaultHttpClient client = new DefaultHttpClient(new PoolingClientConnectionManager()); | |
| 84 | - try { | |
| 85 | - HttpPost httpPost = new HttpPost(url); | |
| 86 | - /*StringEntity se = new StringEntity(vcCardNo,"UTF-8"); | |
| 87 | - se.setContentType("text/json"); | |
| 88 | - httpPost.setEntity(se);*/ | |
| 89 | - //执行post请求 | |
| 90 | - HttpResponse respon = client.execute(httpPost); | |
| 91 | - if(respon != null && respon.getStatusLine().getStatusCode() == 200){ | |
| 92 | - String result= EntityUtils.toString(respon.getEntity()); | |
| 93 | - System.out.print(result); | |
| 94 | - // 生成 JSON 对象 | |
| 95 | - JSONObject obj = JSONObject.parseObject(result); | |
| 96 | - if(obj!=null){ | |
| 97 | - id = obj.getString("id"); | |
| 98 | - } | |
| 99 | - return id == null ? vcCardNo : id; | |
| 100 | - }else{ | |
| 101 | - System.out.println("传输失败!"); | |
| 102 | - } | |
| 103 | - }catch (Exception e){ | |
| 104 | - ExceptionUtils.catchException(e,"承德就诊卡号获取病人id异常"); | |
| 105 | - return vcCardNo; | |
| 106 | - } | |
| 107 | - finally { | |
| 108 | - client.close(); | |
| 109 | - } | |
| 110 | 81 | |
| 111 | - return vcCardNo; | |
| 82 | + return "1233"; | |
| 83 | +// String id = null; | |
| 84 | +// String url = "http://10.0.200.2:9090/his/getCdFyIdByVcCardNo?vcCardNo="+vcCardNo; | |
| 85 | +// DefaultHttpClient client = new DefaultHttpClient(new PoolingClientConnectionManager()); | |
| 86 | +// try { | |
| 87 | +// HttpPost httpPost = new HttpPost(url); | |
| 88 | +// /*StringEntity se = new StringEntity(vcCardNo,"UTF-8"); | |
| 89 | +// se.setContentType("text/json"); | |
| 90 | +// httpPost.setEntity(se);*/ | |
| 91 | +// //执行post请求 | |
| 92 | +// HttpResponse respon = client.execute(httpPost); | |
| 93 | +// if(respon != null && respon.getStatusLine().getStatusCode() == 200){ | |
| 94 | +// String result= EntityUtils.toString(respon.getEntity()); | |
| 95 | +// System.out.print(result); | |
| 96 | +// // 生成 JSON 对象 | |
| 97 | +// JSONObject obj = JSONObject.parseObject(result); | |
| 98 | +// if(obj!=null){ | |
| 99 | +// id = obj.getString("id"); | |
| 100 | +// } | |
| 101 | +// return id == null ? vcCardNo : id; | |
| 102 | +// }else{ | |
| 103 | +// System.out.println("传输失败!"); | |
| 104 | +// } | |
| 105 | +// }catch (Exception e){ | |
| 106 | +// ExceptionUtils.catchException(e,"承德就诊卡号获取病人id异常"); | |
| 107 | +// return vcCardNo; | |
| 108 | +// } | |
| 109 | +// finally { | |
| 110 | +// client.close(); | |
| 111 | +// } | |
| 112 | +// | |
| 113 | +// return vcCardNo; | |
| 112 | 114 | } |
| 113 | 115 | |
| 114 | 116 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java
View file @
c894940
| ... | ... | @@ -267,7 +267,7 @@ |
| 267 | 267 | |
| 268 | 268 | |
| 269 | 269 | //承德市妇幼通过就诊卡号查询到病人id保存下来 |
| 270 | - if ("2100001291".equals(patient.getHospitalId()) && StringUtils.isNotEmpty(yunRequest.getVcCardNo())) | |
| 270 | + if ("2100001636".equals(patient.getHospitalId()) && StringUtils.isNotEmpty(yunRequest.getVcCardNo())) | |
| 271 | 271 | { |
| 272 | 272 | patient.setBlNum(cdfyHisService.getIdByVcCardNo(yunRequest.getVcCardNo())); |
| 273 | 273 | } |