|  |  | 
 |  |  | import com.baomidou.mybatisplus.core.conditions.Wrapper; | 
 |  |  | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | 
 |  |  | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; | 
 |  |  | import com.doumee.core.model.PageData; | 
 |  |  | import com.doumee.core.model.PageWrap; | 
 |  |  | import com.doumee.service.business.third.model.PageData; | 
 |  |  | import com.doumee.service.business.third.model.PageWrap; | 
 |  |  | import com.doumee.core.utils.Constants; | 
 |  |  | import com.doumee.dao.business.dao.CompanyMapper; | 
 |  |  | import com.doumee.dao.business.model.Company; | 
 |  |  | 
 |  |  |                     custom =true; | 
 |  |  |                     c += StringUtils.defaultString(d.getCustomData(),""); | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |             } | 
 |  |  |             if(!all &&!departAndChild&& !depart && !departAndLeaf && !custom ){ | 
 |  |  |                 return  new ArrayList<>(); | 
 |  |  |             } | 
 |  |  |             Company department = new Company(); | 
 |  |  |             department.setId(user.getCompanyId()); | 
 |  |  |  | 
 |  |  |             if(all){ | 
 |  |  |                 return  null; | 
 |  |  |             }else{ | 
 |  |  |             } else{ | 
 |  |  |                 List<Integer> dList = new ArrayList<>(); | 
 |  |  |                 dList.add(-1);//虚拟部门,排查空集合 | 
 |  |  |                 if(custom) { |