| 
					
				 | 
			
			
				@@ -165,8 +165,12 @@ public class MzPharmacyServiceImpl implements MzPharmacyService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (patientId != null && times != null && receiptNo != null &&  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 orderNo != null && chargeItemCode != null && serial != null && itemNo != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                // 修复:yp_mz_fytj 表中的 receipt_no 是负数,但 mz_charge_detail 表中是正数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                // 需要将 receiptNo 转换为正数来查询 mz_charge_detail 表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Integer actualReceiptNo = Math.abs(receiptNo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 Map<String, Object> chargeDetailInfo = mzPharmacyMapper.selectChargeDetailInfo( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    patientId, times, receiptNo, orderNo, chargeItemCode, serial, itemNo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    patientId, times, actualReceiptNo, orderNo, chargeItemCode, serial, itemNo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (chargeDetailInfo != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     item.put("realNo", chargeDetailInfo.get("realNo")); 
			 |