|  |  | 
 |  |  |     @Autowired | 
 |  |  |     OrganizationMapper organizationMapper; | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public List<Organization> getChildrenOrganizationsById(Integer id) { | 
 |  |  |         List<Organization> childrenOrganization = new ArrayList<>(); | 
 |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public Organization getStateControlStation() { | 
 |  |  |         QueryWrapper<Organization> wrapper = new QueryWrapper<>(); | 
 |  |  |         wrapper.eq("name","国控站"); | 
 |  |  |         wrapper.eq("is_delete",Constants.NOT_DELETE); | 
 |  |  |         Organization organization = organizationMapper.selectOne(wrapper); | 
 |  |  |         return organization; | 
 |  |  |     public Organization getOrganizationById(Integer id) { | 
 |  |  |         return organizationMapper.selectById(id); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |     * @Description: 通过父组织查询下面所有的子组织放到children中 | 
 |  |  | 
 |  |  |             */ | 
 |  |  |     private void recursionQueryChildren(Integer parentId, List<Organization> children) { | 
 |  |  |         QueryWrapper<Organization> queryWrapper = new QueryWrapper(); | 
 |  |  |         queryWrapper.select("id"); | 
 |  |  |         queryWrapper.eq("is_delete", Constants.NOT_DELETE); | 
 |  |  |         queryWrapper.eq("parent_id", parentId); | 
 |  |  |         List<Organization> organizations = organizationMapper.selectList(queryWrapper); |