| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.yuanchu.mom.dto.DepartmentDto; |
| | | import com.yuanchu.mom.mapper.DepartmentLimsMapper; |
| | | import com.yuanchu.mom.pojo.Department; |
| | | import com.yuanchu.mom.pojo.DepartmentLims; |
| | | import com.yuanchu.mom.service.DepartmentLimsService; |
| | | import lombok.AllArgsConstructor; |
| | |
| | | return removeBatchByIds(department); |
| | | } |
| | | |
| | | @Override |
| | | public List<DepartmentLims> selectDepartmentLimsEnum() { |
| | | return baseMapper.selectList(Wrappers.<DepartmentLims>lambdaQuery().isNotNull(DepartmentLims::getFatherId).select(DepartmentLims::getId,DepartmentLims::getName)); |
| | | } |
| | | |
| | | //判断是否有子类,直到没有为止 |
| | | public List<DepartmentLims> getDepartment(Integer id) { |
| | | List<DepartmentLims> list = new ArrayList<>(); |