| | |
| | | @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.select("id"); |
| | | 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中 |
| | | * @Param: [parentId, children] |