| 
					
				 | 
			
			
				@@ -325,6 +325,104 @@ public class SysDeptServiceImpl implements ISysDeptService 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 是否共享积分规则 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public List<String> deptIntegralInfoList(SysDept dept) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        List<String> list = new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(dept!=null &&dept.getJiBie()!=null  && dept.getJiBie()==1 ){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if(dept.getIntegralRuleFlag()!=null &&dept.getIntegralRuleFlag().equals("1")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                list.add(dept.getDeptId()+""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }else if(dept.getIntegralRuleFlag()!=null &&dept.getIntegralRuleFlag().equals("0")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                SysDept sysDept2 =new SysDept(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                sysDept2.setParentId(dept.getDeptId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                List<SysDept> list2 = deptMapper.selectDeptList(sysDept2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                for(SysDept dpt2:list2){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    list.add(dpt2.getDeptId().toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }else if(dept!=null && dept.getJiBie()!=null  && dept.getJiBie()==2){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            SysDept sysDept  = deptMapper.selectDeptById(dept.getParentId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if(sysDept.getIntegralRuleFlag()!=null &&sysDept.getIntegralRuleFlag().equals("1")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                list.add(sysDept.getDeptId()+""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }else if(sysDept.getIntegralRuleFlag()!=null &&sysDept.getIntegralRuleFlag().equals("0")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                list.add(dept.getDeptId()+""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return list; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 是否共享电子卡规则 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public List<String> deptCardInfoList(SysDept dept) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        List<String> list = new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(dept!=null &&dept.getJiBie()!=null  && dept.getJiBie()==1 ){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if(dept.getCardRuleFlag()!=null &&dept.getCardRuleFlag().equals("1")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                list.add(dept.getDeptId()+""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }else if(dept.getCardRuleFlag()!=null &&dept.getCardRuleFlag().equals("0")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                SysDept sysDept2 =new SysDept(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                sysDept2.setParentId(dept.getDeptId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                List<SysDept> list2 = deptMapper.selectDeptList(sysDept2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                for(SysDept dpt2:list2){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    list.add(dpt2.getDeptId().toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }else if(dept!=null && dept.getJiBie()!=null  && dept.getJiBie()==2){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            SysDept sysDept  = deptMapper.selectDeptById(dept.getParentId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if(sysDept.getCardRuleFlag()!=null &&sysDept.getCardRuleFlag().equals("1")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                list.add(sysDept.getDeptId()+""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }else if(sysDept.getCardRuleFlag()!=null &&sysDept.getCardRuleFlag().equals("0")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                list.add(dept.getDeptId()+""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return list; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 是否共享优惠劵 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param dept 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public List<String> deptCouponInfoList(SysDept dept) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        List<String> list = new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(dept!=null &&dept.getJiBie()!=null  && dept.getJiBie()==1 ){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if(dept.getCouponFlag()!=null &&dept.getCouponFlag().equals("1")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                list.add(dept.getDeptId()+""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }else if(dept.getCouponFlag()!=null &&dept.getCouponFlag().equals("0")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                SysDept sysDept2 =new SysDept(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                sysDept2.setParentId(dept.getDeptId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                List<SysDept> list2 = deptMapper.selectDeptList(sysDept2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                for(SysDept dpt2:list2){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    list.add(dpt2.getDeptId().toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }else if(dept!=null && dept.getJiBie()!=null  && dept.getJiBie()==2){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            SysDept sysDept  = deptMapper.selectDeptById(dept.getParentId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if(sysDept.getCouponFlag()!=null &&sysDept.getCouponFlag().equals("1")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                list.add(sysDept.getDeptId()+""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }else if(sysDept.getCouponFlag()!=null &&sysDept.getCouponFlag().equals("0")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                list.add(dept.getDeptId()+""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return list; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 修改油站基础信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param dept 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public int updateDeptInfo(SysDept dept) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return deptMapper.updateDept(dept); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 递归列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private void recursionFn(List<SysDept> list, SysDept t) 
			 |