|  | @ -222,12 +222,14 @@ public class PrescriptionExpressageService extends BaseJpaService<WlyyPrescripti
 | 
	
		
			
				|  |  | //        JSONObject respone = JSONObject.parseObject(re);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         String mailno = "";//顺丰运单号
 | 
	
		
			
				|  |  |         String bspOrderNo = "";//顺丰业务号
 | 
	
		
			
				|  |  |         
 | 
	
		
			
				|  |  |         JSONArray successResult =  respone.getJSONObject("result").getJSONArray("successResult");
 | 
	
		
			
				|  |  |         
 | 
	
		
			
				|  |  |         if(!successResult.isEmpty()){
 | 
	
		
			
				|  |  |             JSONObject object = successResult.getJSONObject(0);
 | 
	
		
			
				|  |  |             mailno = object.getString("mailNo");
 | 
	
		
			
				|  |  |             bspOrderNo = object.getString("bspOrderNo");
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     
 | 
	
		
			
				|  |  |         logger.info("顺丰快递下订单:mailno"+mailno);
 | 
	
	
		
			
				|  | @ -236,6 +238,7 @@ public class PrescriptionExpressageService extends BaseJpaService<WlyyPrescripti
 | 
	
		
			
				|  |  | //        mailno = respone.getJSONObject("result").getJSONArray("successResult").getJSONObject(0).getString("mailNo");
 | 
	
		
			
				|  |  |         
 | 
	
		
			
				|  |  |         sfexpress_obj.setMailno(mailno);
 | 
	
		
			
				|  |  |         sfexpress_obj.setBspOrderNo(bspOrderNo);
 | 
	
		
			
				|  |  |         return sfexpress_obj;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
	
		
			
				|  | @ -251,9 +254,8 @@ public class PrescriptionExpressageService extends BaseJpaService<WlyyPrescripti
 | 
	
		
			
				|  |  |         //获取医生所处的医院详细地址,作为寄件人地址
 | 
	
		
			
				|  |  |         WlyyOutpatientDO outpatientDO = outpatientDao.findOne(sfexpress_obj.getOutpatientId());
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         JSONObject params =new JSONObject();
 | 
	
		
			
				|  |  |         params.put("orderNo",sfexpress_obj.getMailno());
 | 
	
		
			
				|  |  |         String re = this.SFExpressQueryPostV2(params);
 | 
	
		
			
				|  |  |         String orderNo=sfexpress_obj.getBspOrderNo();
 | 
	
		
			
				|  |  |         String re = this.SFExpressQueryPostV2(orderNo);
 | 
	
		
			
				|  |  |         //xml验证
 | 
	
		
			
				|  |  |         logger.info("顺丰快递面单查询:re"+re);
 | 
	
		
			
				|  |  |         verificationResponV2(re);
 | 
	
	
		
			
				|  | @ -787,17 +789,17 @@ public class PrescriptionExpressageService extends BaseJpaService<WlyyPrescripti
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      * @throws Exception
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     private String SFExpressQueryPostV2(JSONObject params)throws Exception{
 | 
	
		
			
				|  |  |         params.put("version","1.0");
 | 
	
		
			
				|  |  |         params.put("timestamp",new Date().getTime());
 | 
	
		
			
				|  |  |         String sign = SHAUtils.SHA512(params.toJSONString()+sf_check_word);
 | 
	
		
			
				|  |  |         String url =sf_url+"/api/open/api/addOrder?hospitalCode="+sf_code+"&sign="+sign;
 | 
	
		
			
				|  |  |     private String SFExpressQueryPostV2(String params)throws Exception{
 | 
	
		
			
				|  |  |       /*  params.put("version","1.0");
 | 
	
		
			
				|  |  |         params.put("timestamp",new Date().getTime());*/
 | 
	
		
			
				|  |  |         String sign = SHAUtils.SHA512(params+sf_check_word);
 | 
	
		
			
				|  |  |         String url =sf_url+"/api/open/api/listSelfPrintDO?hospitalCode="+sf_code+"&sign="+sign+"&version=1.0"+"×tamp="+new Date().getTime()+"&orderNo="+params;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         logger.info("顺丰快递面单查询:sf_url"+url);
 | 
	
		
			
				|  |  |         logger.info("顺丰快递面单查询:params"+params.toString());
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         String re = HttpClientUtils.doPost(url, params.toJSONString(), ContentType.APPLICATION_JSON);
 | 
	
		
			
				|  |  |         String re = HttpClientUtils.doGet(url);
 | 
	
		
			
				|  |  |         return re;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  |     
 |