|  | @ -1,6 +1,8 @@
 | 
	
		
			
				|  |  | package com.yihu.wlyy.service.third.jw;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import com.alibaba.fastjson.JSONObject;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.entity.patient.prescription.Prescription;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.repository.prescription.PrescriptionDao;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.util.HttpClientUtil;
 | 
	
		
			
				|  |  | import org.apache.http.NameValuePair;
 | 
	
		
			
				|  |  | import org.apache.http.message.BasicNameValuePair;
 | 
	
	
		
			
				|  | @ -30,6 +32,8 @@ public class JwPrescriptionService {
 | 
	
		
			
				|  |  |     private HttpClientUtil httpClientUtil;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private JdbcTemplate jdbcTemplate;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private PrescriptionDao prescriptionDao;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 获取字典列表
 | 
	
	
		
			
				|  | @ -172,12 +176,14 @@ public class JwPrescriptionService {
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      * @throws Exception
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     public String fadeRecipe(String visitNo,String fadeDept,String fadeOperator)throws Exception{
 | 
	
		
			
				|  |  |     public String fadeRecipe(String prescriptionCode)throws Exception{
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         Prescription prescription = prescriptionDao.findByCode(prescriptionCode);
 | 
	
		
			
				|  |  |         String url = jwUrl + "/third/prescription/fadeRecipe";
 | 
	
		
			
				|  |  |         List<NameValuePair> params = new ArrayList<>();
 | 
	
		
			
				|  |  |         params.add(new BasicNameValuePair("visitNo", visitNo));//挂号号
 | 
	
		
			
				|  |  |         params.add(new BasicNameValuePair("fadeDept", fadeDept));//作废科室编码
 | 
	
		
			
				|  |  |         params.add(new BasicNameValuePair("fadeOperator", fadeOperator));//作废人员编码
 | 
	
		
			
				|  |  |         params.add(new BasicNameValuePair("visitNo", prescription.getVisitNo()));//挂号号
 | 
	
		
			
				|  |  |         params.add(new BasicNameValuePair("fadeDept", prescription.getJwDeptCode()));//作废科室编码
 | 
	
		
			
				|  |  |         params.add(new BasicNameValuePair("fadeOperator", prescription.getJwDoctorCode()));//作废人员编码
 | 
	
		
			
				|  |  |         String response = httpClientUtil.post(url, params, "UTF-8");
 | 
	
		
			
				|  |  |         return response;
 | 
	
		
			
				|  |  |     }
 |