| 
					
				 | 
			
			
				@@ -603,8 +603,13 @@ public class PayOrderController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         case "1":   //按加油升数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             if(oilLiters.compareTo(discountAmt_B) ==1 || oilLiters.compareTo(discountAmt_B) ==0 ){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 discountPrice = oilPrice.subtract(new BigDecimal(labelRuleDetailList.get(0).getDiscountLitersAmt())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                amt = discountPrice.multiply(oilLiters); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                discountAmt = receivableAmt.subtract(amt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                if(oilPrice.compareTo(discountPrice) == 0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    amt = receivableAmt; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    discountAmt = new BigDecimal("0.00"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    amt = discountPrice.multiply(oilLiters); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    discountAmt = receivableAmt.subtract(amt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 //discountAmt = oilLiters.multiply(new BigDecimal(labelRuleDetailList.get(0).getDiscountLitersAmt())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 discountAmt = discountAmt.setScale(2, BigDecimal.ROUND_HALF_UP); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -612,8 +617,15 @@ public class PayOrderController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         case "2":   //按加油金额 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             if(receivableAmt.compareTo(discountAmt_B) ==1 || receivableAmt.compareTo(discountAmt_B) ==0 ){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 discountPrice = oilPrice.subtract(new BigDecimal(labelRuleDetailList.get(0).getDiscountLitersAmt())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                amt = discountPrice.multiply(oilLiters); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                discountAmt = receivableAmt.subtract(amt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                if(oilPrice.compareTo(discountPrice) == 0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    amt = receivableAmt; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    discountAmt = new BigDecimal("0.00"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    amt = discountPrice.multiply(oilLiters); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    discountAmt = receivableAmt.subtract(amt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                                amt = discountPrice.multiply(oilLiters); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                                discountAmt = receivableAmt.subtract(amt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 //discountAmt = oilLiters.multiply(new BigDecimal(labelRuleDetailList.get(0).getDiscountLitersAmt())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 discountAmt = discountAmt.setScale(2, BigDecimal.ROUND_HALF_UP); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             } 
			 |