| 
					
				 | 
			
			
				@@ -52,7 +52,7 @@ public class PayControlRuleServiceImpl implements PayControlRuleService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         payControlRule.setUpdateBy(new BigInteger(String.valueOf(loginUser.getId()))); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         payControlRule.setUpdateDate(LocalDateTime.now()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         payControlRule.setDelFlag("0"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        payControlRule.setDisable("0"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        payControlRule.setDisable(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Integer result = payControlRuleMapper.add(payControlRule); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return  result; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -94,7 +94,7 @@ public class PayControlRuleServiceImpl implements PayControlRuleService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if(IsUsed(payControlRule.getId().intValue(),new BigInteger(loginUser.getCustomerId().toString()))){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             throw new ServiceException(-99,"该阀控规则已有客户使用,如编辑会对应用客户有影响,是否继续?"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        payControlRule.setCustomerId(new BigInteger(loginUser.getCustomerId().toString())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Integer result = payControlRuleMapper.edit(payControlRule); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return  result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -120,7 +120,7 @@ public class PayControlRuleServiceImpl implements PayControlRuleService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         PayControlRule payControlRule = new PayControlRule(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         payControlRule.setId(new BigInteger(id)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        payControlRule.setDisable(disable); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        payControlRule.setDisable(Integer.parseInt(disable)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Integer result = payControlRuleMapper.edit(payControlRule); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return  result; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -134,14 +134,17 @@ public class PayControlRuleServiceImpl implements PayControlRuleService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public boolean IsUsed(Integer id,BigInteger custoemrId){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         String result = payControlRuleMapper.isUsed(id,custoemrId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        String[] sp = result.split(","); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if(sp != null && sp.length > 0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            for (int i=0;i<sp.length;i++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if(sp[i].equals(id.toString())) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    return true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(result != null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            String[] sp = result.split(","); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if(sp != null && sp.length > 0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                for (int i=0;i<sp.length;i++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if(sp[i].equals(id.toString())) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        return true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -469,7 +472,7 @@ public class PayControlRuleServiceImpl implements PayControlRuleService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //["=", "≠", ">", "<", "≥", "≤"] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<PayControlRule> payControlRules = payControlRuleMapper.findList(id,null,null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if(payControlRules.size() ==1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            String condition= payControlRules.get(0).getOperator(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            String condition= payControlRules.get(0).getOperator().toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             int conditionValue= Integer.valueOf(condition); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             switch (conditionValue){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 case 1:{ 
			 |