|  | @ -7497,9 +7497,11 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                         com.alibaba.fastjson.JSONObject jsonObject2 = xzzxEntranceService.saveDiagnosisToEntrance(outpatientDO.getRegisterNo(),diagnosisName,diagnosisCode);
 | 
	
		
			
				|  |  |                         logger.info("上传诊断返回参数"+jsonObject2);
 | 
	
		
			
				|  |  |                         //{"msg":"交易成功","code":"0","data":{"PresDetail":{"PresNo":"16151365"}},"success":"True"}
 | 
	
		
			
				|  |  |                         if (jsonObject2!=null&&jsonObject2.get("code")!=null&&jsonObject2.getString("code").equalsIgnoreCase("0")){
 | 
	
		
			
				|  |  |                             com.alibaba.fastjson.JSONObject jsonObject = jsonObject2.getJSONObject("data");
 | 
	
		
			
				|  |  |                             logger.info("上传诊断成功"+jsonObject2);
 | 
	
		
			
				|  |  |                         if (jsonObject2!=null){
 | 
	
		
			
				|  |  |                             if (jsonObject2.getString("code").equalsIgnoreCase("0")){
 | 
	
		
			
				|  |  |                                 com.alibaba.fastjson.JSONObject jsonObject = jsonObject2.getJSONObject("data");
 | 
	
		
			
				|  |  |                                 logger.info("上传诊断成功"+jsonObject2);
 | 
	
		
			
				|  |  |                             }
 | 
	
		
			
				|  |  |                         }
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                     //同步处方
 | 
	
	
		
			
				|  | @ -7507,13 +7509,15 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                     com.alibaba.fastjson.JSONObject object = xzzxEntranceService.savePrescriptionToEntrance("0",outpatientDO.getCardNo(),outpatientDO.getRegisterNo(),outpatientDO.getDept(),applyDoctor,"50100",infoDOS);
 | 
	
		
			
				|  |  |                     logger.info("成功上传处方"+object);
 | 
	
		
			
				|  |  |                     //{"msg":"交易成功","code":"0","data":{"PresDetail":{"PresNo":"16151365"}},"success":"True"}
 | 
	
		
			
				|  |  |                     if (object!=null&&object.get("code")!=null&&object.getString("code").equalsIgnoreCase("0")){
 | 
	
		
			
				|  |  |                         com.alibaba.fastjson.JSONObject jsonObject = object.getJSONObject("data");
 | 
	
		
			
				|  |  |                         com.alibaba.fastjson.JSONObject jsonObject1 = jsonObject.getJSONObject("PresDetail");
 | 
	
		
			
				|  |  |                         String realOrder = jsonObject1.getString("PresNo");
 | 
	
		
			
				|  |  |                         wlyyPrescriptionDO.setAdmNo(outpatientDO.getAdmNo());
 | 
	
		
			
				|  |  |                         wlyyPrescriptionDO.setSerialNo(outpatientDO.getAdmNo());
 | 
	
		
			
				|  |  |                         wlyyPrescriptionDO.setRealOrder(realOrder);
 | 
	
		
			
				|  |  |                     if (object!=null){
 | 
	
		
			
				|  |  |                         if (object.getString("code").equalsIgnoreCase("0")){
 | 
	
		
			
				|  |  |                             com.alibaba.fastjson.JSONObject jsonObject = object.getJSONObject("data");
 | 
	
		
			
				|  |  |                             com.alibaba.fastjson.JSONObject jsonObject1 = jsonObject.getJSONObject("PresDetail");
 | 
	
		
			
				|  |  |                             String realOrder = jsonObject1.getString("PresNo");
 | 
	
		
			
				|  |  |                             wlyyPrescriptionDO.setAdmNo(outpatientDO.getAdmNo());
 | 
	
		
			
				|  |  |                             wlyyPrescriptionDO.setSerialNo(outpatientDO.getAdmNo());
 | 
	
		
			
				|  |  |                             wlyyPrescriptionDO.setRealOrder(realOrder);
 | 
	
		
			
				|  |  |                         }
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                     logger.info("进入处方签名");
 | 
	
		
			
				|  |  |                     //处方签名
 |