|  | @ -36,6 +36,7 @@ import com.yihu.jw.patient.dao.BasePatientDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.base.version.BaseServerVersionVO;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.hospital.prescription.*;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.iot.company.IotCompanyVO;
 | 
	
		
			
				|  |  | import com.yihu.jw.patient.dao.BasePatientDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.rm.base.BaseRequestMapping;
 | 
	
		
			
				|  |  | import com.yihu.jw.rm.hospital.BaseHospitalRequestMapping;
 | 
	
		
			
				|  |  | import com.yihu.jw.util.common.IdCardUtil;
 | 
	
	
		
			
				|  | @ -542,7 +543,7 @@ public class XzzxEntranceService extends BaseJpaService {
 | 
	
		
			
				|  |  |                 "</root>";
 | 
	
		
			
				|  |  |         String condition ="";
 | 
	
		
			
				|  |  |         if (StringUtils.isNoneBlank(idCard)){
 | 
	
		
			
				|  |  |             condition = "<identity_no>"+idCard+"</identity_no>";
 | 
	
		
			
				|  |  |             condition = "<Idcard>"+idCard+"</Idcard>";
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         String msgBody ="<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
 | 
	
		
			
				|  |  |                 "<root>"+condition+"</root>";
 | 
	
	
		
			
				|  | @ -552,7 +553,7 @@ public class XzzxEntranceService extends BaseJpaService {
 | 
	
		
			
				|  |  |         params.put("msgBody",msgBody);
 | 
	
		
			
				|  |  |         logger.info("findPatientCard params:"+params.toString());
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         String xml = getXzzxWebServiceInfo("CallInterface",params,getSelectUrl());
 | 
	
		
			
				|  |  |         String xml = getXzzxWebServiceInfo("FindPatientCard",params,getSelectUrl());
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         XMLSerializer xmlSerializer = new XMLSerializer();
 | 
	
		
			
				|  |  |         String json = xmlSerializer.read(xml).toString();
 | 
	
	
		
			
				|  | @ -591,7 +592,7 @@ public class XzzxEntranceService extends BaseJpaService {
 | 
	
		
			
				|  |  |         params.put("msgBody",msgBody);
 | 
	
		
			
				|  |  |         logger.info("getCardInfo params:"+params.toString());
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         String xml = getXzzxWebServiceInfo("CallInterface",params,getSelectUrl());
 | 
	
		
			
				|  |  |         String xml = getXzzxWebServiceInfo("GetCardInfo",params,getSelectUrl());
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         XMLSerializer xmlSerializer = new XMLSerializer();
 | 
	
		
			
				|  |  |         String json = xmlSerializer.read(xml).toString();
 | 
	
	
		
			
				|  | @ -631,7 +632,7 @@ public class XzzxEntranceService extends BaseJpaService {
 | 
	
		
			
				|  |  |         params.put("msgBody",msgBody);
 | 
	
		
			
				|  |  |         logger.info("FindOutpatientInfo params:"+params.toString());
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         String xml = getXzzxWebServiceInfo("CallInterface",params,getSelectUrl());
 | 
	
		
			
				|  |  |         String xml = getXzzxWebServiceInfo("FindOutpatientInfo",params,getSelectUrl());
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         XMLSerializer xmlSerializer = new XMLSerializer();
 | 
	
		
			
				|  |  |         String json = xmlSerializer.read(xml).toString();
 | 
	
	
		
			
				|  | @ -679,7 +680,7 @@ public class XzzxEntranceService extends BaseJpaService {
 | 
	
		
			
				|  |  |         params.put("msgHeader",msgHeader);
 | 
	
		
			
				|  |  |         params.put("msgBody",msgBody);
 | 
	
		
			
				|  |  |         logger.info("getOriginPrescriptionList params:"+params.toString());
 | 
	
		
			
				|  |  |         String xml = getXzzxWebServiceInfo("CallInterface",params,getSelectUrl());
 | 
	
		
			
				|  |  |         String xml = getXzzxWebServiceInfo("GetOriginPrescriptionList",params,getSelectUrl());
 | 
	
		
			
				|  |  |         XMLSerializer xmlSerializer = new XMLSerializer();
 | 
	
		
			
				|  |  |         String json = xmlSerializer.read(xml).toString();
 | 
	
		
			
				|  |  |         logger.info("getOriginPrescriptionList json:"+json);
 | 
	
	
		
			
				|  | @ -726,7 +727,7 @@ public class XzzxEntranceService extends BaseJpaService {
 | 
	
		
			
				|  |  |         params.put("msgHeader",msgHeader);
 | 
	
		
			
				|  |  |         params.put("msgBody",msgBody);
 | 
	
		
			
				|  |  |         logger.info("registered params:"+params.toString());
 | 
	
		
			
				|  |  |         String xml = getXzzxWebServiceInfo("CallInterface",params,getOperateUrl());
 | 
	
		
			
				|  |  |         String xml = getXzzxWebServiceInfo("Registered",params,getOperateUrl());
 | 
	
		
			
				|  |  |         XMLSerializer xmlSerializer = new XMLSerializer();
 | 
	
		
			
				|  |  |         String json = xmlSerializer.read(xml).toString();
 | 
	
		
			
				|  |  |         logger.info("registered json:"+json);
 | 
	
	
		
			
				|  | @ -742,7 +743,7 @@ public class XzzxEntranceService extends BaseJpaService {
 | 
	
		
			
				|  |  |      * @throws Exception
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     //处方状态变更
 | 
	
		
			
				|  |  |     public String updatePrescriptionStatus(String admNo,String realOrder,String status)throws Exception{
 | 
	
		
			
				|  |  |     public String updatePreStatus(String admNo,String realOrder,String status)throws Exception{
 | 
	
		
			
				|  |  |         String api = "UpdatePreStatus";
 | 
	
		
			
				|  |  |         String msgHeader ="<?xml version=\"1.0\" encoding=\"utf-8\"?> " +
 | 
	
		
			
				|  |  |                 "<root> " +
 | 
	
	
		
			
				|  | @ -768,7 +769,7 @@ public class XzzxEntranceService extends BaseJpaService {
 | 
	
		
			
				|  |  |         params.put("msgHeader",msgHeader);
 | 
	
		
			
				|  |  |         params.put("msgBody",msgBody);
 | 
	
		
			
				|  |  |         logger.info("updatePreStatus params:"+params.toString());
 | 
	
		
			
				|  |  |         String xml = getXzzxWebServiceInfo("CallInterface",params,getOperateUrl());
 | 
	
		
			
				|  |  |         String xml = getXzzxWebServiceInfo("UpdatePreStatus",params,getOperateUrl());
 | 
	
		
			
				|  |  |         XMLSerializer xmlSerializer = new XMLSerializer();
 | 
	
		
			
				|  |  |         String json = xmlSerializer.read(xml).toString();
 | 
	
		
			
				|  |  |         logger.info("updatePreStatus json:"+json);
 | 
	
	
		
			
				|  | @ -883,6 +884,17 @@ public class XzzxEntranceService extends BaseJpaService {
 | 
	
		
			
				|  |  |         return token;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public String ehospitalNotice(String userName, String idCard, String phone, String title, String url, String content, String contentString) {
 | 
	
		
			
				|  |  |         logger.info("ehospitalNotice:");
 | 
	
		
			
				|  |  |         BasePatientDO patientDO = basePatientDao.findByIdcardAndDel(idCard,"1");
 | 
	
		
			
				|  |  |         if(patientDO!=null&&StringUtils.isNotBlank(patientDO.getIdcard())){
 | 
	
		
			
				|  |  |             sendMes("xm_xzzx_wx",patientDO.getId(),null,content,contentString,"",url);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         return "-2";
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | //=====================微信模板消息推送接口================================
 | 
	
		
			
				|  |  | 
 |