| | |
| | | |
| | | @Override |
| | | public List<SysDept> selectDeptListByDeptIds(Long[] deptIds) { |
| | | List<SysDept> sysDeptList = new ArrayList<SysDept>(); |
| | | for (Long deptId : deptIds) { |
| | | SysDept sysDept = sysDeptMapper.selectDeptById(deptId); |
| | | sysDeptList.add(sysDept); |
| | | } |
| | | return sysDeptList; |
| | | // List<SysDept> sysDeptList = new ArrayList<SysDept>(); |
| | | // for (Long deptId : deptIds) { |
| | | // SysDept sysDept = sysDeptMapper.selectDeptById(deptId); |
| | | // sysDeptList.add(sysDept); |
| | | // } |
| | | return sysDeptMapper.selectList(new QueryWrapper<SysDept>()); |
| | | } |
| | | |
| | | @Override |