| | |
| | | import java.util.stream.Collectors; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.ruoyi.common.core.domain.TreeSelectWell; |
| | | import org.springframework.stereotype.Service; |
| | | import com.ruoyi.common.annotation.DataScope; |
| | | import com.ruoyi.common.constant.UserConstants; |
| | |
| | | return deptList; |
| | | } |
| | | |
| | | @Override |
| | | public List<SysDept> all() { |
| | | return deptMapper.selectList(null); |
| | | } |
| | | |
| | | @Override |
| | | public List<TreeSelectWell> wellTree(List<SysDept> depts) { |
| | | List<SysDept> deptTrees = buildDeptTree(depts); |
| | | return deptTrees.stream().map(TreeSelectWell::new).collect(Collectors.toList()); |
| | | } |
| | | |
| | | |
| | | } |