|  | @ -2952,6 +2952,42 @@ public Map checkSyncHis(String IoFlag,String PayCardNo,String NullahNumber,Strin
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         return jsonObject;
 |  |         return jsonObject;
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
													
														
															|  | 
 |  |     /**
 | 
												
													
														
															|  | 
 |  |      * 删除处方信息
 | 
												
													
														
															|  | 
 |  |      * @param realOrder his处方号
 | 
												
													
														
															|  | 
 |  |      * @return
 | 
												
													
														
															|  | 
 |  |      * @throws Exception
 | 
												
													
														
															|  | 
 |  |      */
 | 
												
													
														
															|  | 
 |  |     public JSONObject deletePrescriptionToEntrance(String realOrder) throws Exception {
 | 
												
													
														
															|  | 
 |  |         Map<String,String> params = new HashedMap();
 | 
												
													
														
															|  | 
 |  |         WlyyPrescriptionDO wlyyPrescriptionDO = prescriptionDao.findByRealOrder(realOrder);
 | 
												
													
														
															|  | 
 |  |         if (null!=wlyyPrescriptionDO){
 | 
												
													
														
															|  | 
 |  |             params.put("IoFlag","0");
 | 
												
													
														
															|  | 
 |  |             WlyyOutpatientDO wlyyOutpatientDO = outpatientDao.findById(wlyyPrescriptionDO.getOutpatientId());
 | 
												
													
														
															|  | 
 |  |             if (null!=wlyyOutpatientDO){
 | 
												
													
														
															|  | 
 |  |                 params.put("PayCardNo",wlyyOutpatientDO.getCardNo());
 | 
												
													
														
															|  | 
 |  |                 params.put("NullahNumber",wlyyOutpatientDO.getRegisterNo());
 | 
												
													
														
															|  | 
 |  |                 params.put("ApplyDept",wlyyOutpatientDO.getDept());
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |             DoctorMappingDO doctorMappingDO = doctorMappingDao.findByDoctor(wlyyPrescriptionDO.getDoctor());
 | 
												
													
														
															|  | 
 |  |             if (null!=doctorMappingDO){
 | 
												
													
														
															|  | 
 |  |                 params.put("ApplyDoctor",doctorMappingDO.getMappingCode());
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |             params.put("ExecuteDept","50100");
 | 
												
													
														
															|  | 
 |  |             params.put("PresNo",realOrder);
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  |         JSONObject jsonObject = new JSONObject();
 | 
												
													
														
															|  | 
 |  |         String response = "";
 | 
												
													
														
															|  | 
 |  |         String url = entranceUrl+"delHisPrescriptionByHisNo";
 | 
												
													
														
															|  | 
 |  |         logger.info("params"+params.toString());
 | 
												
													
														
															|  | 
 |  |         response = httpClientUtil.httpPost(url,params);
 | 
												
													
														
															|  | 
 |  |         logger.info("删除处方信息"+response);
 | 
												
													
														
															|  | 
 |  |         JSONObject object = JSONObject.parseObject(response);
 | 
												
													
														
															|  | 
 |  |         if(object.getInteger("status")==200){
 | 
												
													
														
															|  | 
 |  |             jsonObject = object.getJSONObject("obj");
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  |         return jsonObject;
 | 
												
													
														
															|  | 
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | //=====================hospital应用调用entrance应用============end=================
 |  | //=====================hospital应用调用entrance应用============end=================
 | 
												
													
														
															|  | 
 |  | 
 |