Sfoglia il codice sorgente

正式环境接口未接口,先不开放挂号接口

huangwenjie 5 anni fa
parent
commit
5e681621d6

+ 27 - 27
business/im-service/src/main/java/com/yihu/jw/im/service/ImService.java

@ -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
			

+ 9 - 0
svr/svr-internet-hospital/src/main/java/com/yihu/jw/hospital/endpoint/consult/DoctorConsultEndpoint.java

@ -103,6 +103,15 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
		
			JSONObject result = new JSONObject();
			synchronized (outpatientCode.intern()){
				
//				//1.调用挂号接口
//				net.sf.json.JSONObject rs = prescriptionService.registerOutPatient(outpatientCode,doctorCode);
//				String rsCode = (String)rs.get("@RESULT");
//				if(!"0".equals(rsCode)){
//					return failed("挂号失败,无法发起咨询");
//				}
				
				//2.
				result = imService.addPrescriptionConsult(outpatientCode, patientCode,doctorCode,consult,reason,type);
			}
//			if (res == -1) {