| 
					
				 | 
			
			
				@@ -1023,7 +1023,7 @@ public class PayController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 BigDecimal divide = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 BigDecimal multiply = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 //判断油站配置的优惠类型 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                if(discountPlanType.equals("1") && integralRuleDetail.getGread() !=null && customerManage.getGrade().equals(integralRuleDetail.getGread())){   //等级直降 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                if(discountPlanType.equals("1") && integralRuleDetail.getGread() !=null && customerManage.getGrade()!=null && customerManage.getGrade().equals(integralRuleDetail.getGread())){   //等级直降 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     divide = calculateIntegral.getAmt().divide(integralRuleDetail.getSaleAmt(), 0, BigDecimal.ROUND_HALF_DOWN); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     multiply = divide.multiply(integralRuleDetail.getIntegral()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 }else { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1063,7 +1063,7 @@ public class PayController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 BigDecimal divide = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 BigDecimal multiply = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 //判断油站配置的优惠类型 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                if(discountPlanType.equals("1") && integralRuleDetail.getGread() !=null && customerManage.getGrade().equals(integralRuleDetail.getGread())){   //等级直降 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                if(discountPlanType.equals("1") && integralRuleDetail.getGread() !=null && customerManage.getGrade()!=null && customerManage.getGrade().equals(integralRuleDetail.getGread())){   //等级直降 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     divide = calculateIntegral.getReceivableAmt().divide(integralRuleDetail.getSaleAmt(), 0, BigDecimal.ROUND_HALF_DOWN); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     multiply = divide.multiply(integralRuleDetail.getIntegral()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 }else { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1103,7 +1103,7 @@ public class PayController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 BigDecimal divide = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 BigDecimal multiply = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 //判断油站配置的优惠类型 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                if(discountPlanType.equals("1") && integralRuleDetail.getGread() !=null && customerManage.getGrade().equals(integralRuleDetail.getGread())){   //等级直降 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                if(discountPlanType.equals("1") && integralRuleDetail.getGread() !=null && customerManage.getGrade()!=null && customerManage.getGrade().equals(integralRuleDetail.getGread())){   //等级直降 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     divide = calculateIntegral.getOilLiters().divide(integralRuleDetail.getSaleAmt(), 0, BigDecimal.ROUND_HALF_DOWN); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     multiply = divide.multiply(integralRuleDetail.getIntegral()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 }else { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1144,7 +1144,7 @@ public class PayController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             BigDecimal divide = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             BigDecimal multiply = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             //判断油站配置的优惠类型 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            if(discountPlanType.equals("1") && integralRuleDetail.getGread() !=null && customerManage.getGrade().equals(integralRuleDetail.getGread())){   //等级直降 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            if(discountPlanType.equals("1") && integralRuleDetail.getGread() !=null && customerManage.getGrade()!=null && customerManage.getGrade().equals(integralRuleDetail.getGread())){   //等级直降 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 divide = calculateIntegral.getReceivableAmt().divide(integralRuleDetail.getSaleAmt(), 0, BigDecimal.ROUND_HALF_DOWN); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 multiply = divide.multiply(integralRuleDetail.getIntegral()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             }else { 
			 |