| 
					
				 | 
			
			
				@@ -39,6 +39,7 @@ import lombok.extern.slf4j.Slf4j; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.apache.commons.lang3.StringUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.json.JSONObject; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.beans.factory.annotation.Value; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.dao.DataIntegrityViolationException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -106,8 +107,8 @@ public class MzChargeDetailController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private TransactionService transactionService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private ZdChequeTypeService zdChequeTypeService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @Resource 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    private MzYjReqService mzYjReqService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Value("${wxPayQrUrl}") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private String wxPayQrUrl; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2006,13 +2007,8 @@ public class MzChargeDetailController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Map<String, Object> results = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             results = getChargeDetailFee(patientId, times, 1, null, httpServletRequest); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            BigDecimal selfAmount = (BigDecimal) results.get("selfAmount"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (selfAmount != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                String payQrcode = haiCiAdapterService.genMzPayQrcode(selfAmount.multiply(BigDecimal.valueOf(100)).intValue(), patientId, patientId + "_" + times + "_1"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if (payQrcode != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    results.put("payQrcode", payQrcode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            String payQrcode = wxPayQrUrl.replace("patientId", patientId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            results.put("payQrcode", payQrcode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return results; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } catch (Exception e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (results == null) { 
			 |