| 
					
				 | 
			
			
				@ -273,7 +273,7 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String openId = doctorDO.getOpenid(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String idcard = patientDO.getIdcard(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (hashType!=null&&hashValue!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                JSONObject object1 = synRecipeInfo("2017070411003376","hash_004","2017070411003360",getCode(),patientName,patientAge.toString(),patientSex,"SF",recipeTime,hashValue,hashType,openId,idcard); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                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); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -313,7 +313,7 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String openId = doctorDO.getOpenid(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String idcard = patientDO.getIdcard(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (hashType!=null&&hashValue!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                JSONObject object1 = synRecipeInfo("2017070411003376","hash_002","2017070411003360",getCode(),patientName,patientAge.toString(),patientSex,"SF",recipeTime,hashValue,hashType,openId,idcard); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                JSONObject object1 = synRecipeInfo("hash_002",getCode(),patientName,patientAge.toString(),patientSex,"SF",recipeTime,hashValue,hashType,openId,idcard); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if (object1.getString("status").equalsIgnoreCase("0")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    logger.info("门诊病历签名成功"+object1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -349,9 +349,7 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /*** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 数据签名接口 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param clientId 第三方厂商标识 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param templateId 模板ID签名数据摘要数据类型 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param clientSecret 第三方厂商秘钥 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param urId 签名流水ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param patientName 患者姓名 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param patientAge 患者年龄 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -362,12 +360,16 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param hashType Hash算法(从签名指纹接口结果中得到的) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JSONObject synRecipeInfo(String clientId,String templateId,String clientSecret,String urId,String patientName,String patientAge,String patientSex,String patientCardType,String recipeTime,String hashValue,String hashType,String openId,String patientCard){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JSONObject synRecipeInfo(String templateId,String urId,String patientName,String patientAge,String patientSex,String patientCardType,String recipeTime,String hashValue,String hashType,String openId,String patientCard){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            OauthCaConfigDO oauthCaConfigDO = oauthCaConfigDao.findOne("oauth_ca_config"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String url = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String clientId= ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String clientSecret = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (oauthCaConfigDO!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                url=oauthCaConfigDO.getUrl()+"/gateway/recipe/synRecipeInfo"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                clientId=oauthCaConfigDO.getClientId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                clientSecret=oauthCaConfigDO.getClientSecret(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject object = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject msg = new JSONObject(); 
			 |