| 
					
				 | 
			
			
				@ -267,11 +267,12 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param prescriptionDO 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @throws Exception 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public void SOF_SignDataWithExtraInfo(WlyyPrescriptionDO prescriptionDO) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String SOF_SignDataWithExtraInfo(WlyyPrescriptionDO prescriptionDO) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        WlyyOutpatientDO outpatientDO = outpatientDao.findById(prescriptionDO.getOutpatientId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<WlyyPrescriptionInfoDO> infoDOS = infoDao.findByPrescriptionId(prescriptionDO.getId(), 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<WlyyPrescriptionDiagnosisDO> diagnosisDOS = diagnosisDao.findByPrescriptionId(prescriptionDO.getId(),1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONObject object = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String baseSign=""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        object.put("infos",infoDOS); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        object.put("registerSn",outpatientDO.getRegisterNo()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        object.put("diagnosiss",diagnosisDOS); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -297,9 +298,14 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                JSONObject object1 = synRecipeInfo("hash_004",getCode(),patientName,patientAge.toString(),patientSex,"SF",recipeTime,hashValue,hashType,openId,idcard); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if (object1.getString("status").equalsIgnoreCase("0")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    logger.info("西药处方签名成功"+object1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    JSONObject jsonObject1 = JSONObject.parseObject(object1.getString("data")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    if (jsonObject1!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        baseSign=jsonObject1.getString("stamp"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return baseSign; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -442,7 +448,6 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                clientId=oauthCaConfigDO.getClientId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                clientSecret=oauthCaConfigDO.getClientSecret(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject object = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject msg = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject head = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            head.put("clientId",clientId); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -454,10 +459,8 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            body.put("openId",openId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            msg.put("body",body); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            object.put("msg",msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            object.put("signType",0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.info("请求参数:"+object); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String response = httpClientUtil.sendPost(url,object.toJSONString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.info("请求参数:"+msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String response = httpClientUtil.sendPost(url,msg.toJSONString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.info("请求自动签名授权接口 :"+response); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return JSONObject.parseObject(response); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }catch (Exception e){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -482,7 +485,6 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                clientId=oauthCaConfigDO.getClientId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                clientSecret=oauthCaConfigDO.getClientSecret(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject object = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject msg = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject head = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            head.put("clientId",clientId); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -494,10 +496,8 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            body.put("openId",baseDoctorDO.getOpenid()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            msg.put("body",body); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            object.put("msg",msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            object.put("signType",0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.info("请求参数:"+object); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String response = httpClientUtil.sendPost(url,object.toJSONString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.info("请求参数:"+msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String response = httpClientUtil.sendPost(url,msg.toJSONString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject jsonRes=JSONObject.parseObject(response); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject jsonObject = jsonRes.getJSONObject("data"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            Integer grantStep = jsonObject.getInteger("grantStep"); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -530,7 +530,6 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                clientId=oauthCaConfigDO.getClientId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                clientSecret=oauthCaConfigDO.getClientSecret(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject object = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject msg = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject head = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            head.put("clientId",clientId); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -542,10 +541,8 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            body.put("openId",openId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            msg.put("body",body); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            object.put("msg",msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            object.put("signType",0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.info("请求参数:"+object); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String response = httpClientUtil.sendPost(url,object.toJSONString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.info("请求参数:"+msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String response = httpClientUtil.sendPost(url,msg.toJSONString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.info("退出授权接口 :"+response); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return JSONObject.parseObject(response); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }catch (Exception e){ 
			 |