| 
					
				 | 
			
			
				@ -897,33 +897,33 @@ public class ImService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							WlyyOutpatientDO wlyyOutpatientDO = outpatientDao.findOne(outpatientCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							//2. 调用HIS挂号接口---START 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							DoctorMappingDO doctorMappingDO = doctorMappingService.findMappingCode(doctorCode,wlyyOutpatientDO.getHospital()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							if(doctorMappingDO==null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								throw new RuntimeException("未找到医生映射信息"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							net.sf.json.JSONObject rs = entranceService.BS10111(wlyyOutpatientDO.getCardNo(),doctorMappingDO.getMappingCode(),wlyyOutpatientDO.getDept(),null,wlyyOutpatientDO.getWinNo(),demoFlag); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							String rsCode = (String)rs.get("@RESULT"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							if("0".equals(rsCode)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								//存储挂号号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								String serialNo = (String)rs.get("serial_no"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								wlyyOutpatientDO.setRegisterNo(serialNo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								String conNo = (String)rs.get("@times"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								wlyyOutpatientDO.setConNo(conNo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							//保存日志 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							WlyyHttpLogDO log = new WlyyHttpLogDO(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							log.setCode("registerOutPatient"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							log.setName("挂号"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							log.setPatient(wlyyOutpatientDO.getPatient()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							log.setDoctor(doctorCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							log.setResponse(rs.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							log.setRequest("outPatientId="+outpatientCode+"&doctor="+doctorCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							log.setStatus(rsCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							log.setCreateTime(new Date()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							wlyyHttpLogDao.save(log); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							//2. 调用HIS挂号接口---START  移到CONTROLER层,直接调用挂号接口 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//			DoctorMappingDO doctorMappingDO = doctorMappingService.findMappingCode(doctorCode,wlyyOutpatientDO.getHospital()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//			if(doctorMappingDO==null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//				throw new RuntimeException("未找到医生映射信息"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//			} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//			net.sf.json.JSONObject rs = entranceService.BS10111(wlyyOutpatientDO.getCardNo(),doctorMappingDO.getMappingCode(),wlyyOutpatientDO.getDept(),null,wlyyOutpatientDO.getWinNo(),demoFlag); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//			String rsCode = (String)rs.get("@RESULT"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//			if("0".equals(rsCode)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//				//存储挂号号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//				String serialNo = (String)rs.get("serial_no"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//				wlyyOutpatientDO.setRegisterNo(serialNo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//				String conNo = (String)rs.get("@times"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//				wlyyOutpatientDO.setConNo(conNo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//			} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//			//保存日志 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//			WlyyHttpLogDO log = new WlyyHttpLogDO(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//			log.setCode("registerOutPatient"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//			log.setName("挂号"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//			log.setPatient(wlyyOutpatientDO.getPatient()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//			log.setDoctor(doctorCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//			log.setResponse(rs.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//			log.setRequest("outPatientId="+outpatientCode+"&doctor="+doctorCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//			log.setStatus(rsCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//			log.setCreateTime(new Date()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//			wlyyHttpLogDao.save(log); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							// 调用HIS挂号接口---END 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							 
			 |