| | |
| | | return userDeptService.saveBatch(userDeptList); |
| | | } |
| | | |
| | | /** |
| | | * 自定义分页查询 |
| | | * @param page |
| | | * @param user |
| | | * @param deptId |
| | | * @param tenantId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<UserVO> selectUserPage(IPage<UserVO> page, UserVO user, Long deptId, String tenantId) { |
| | | List<Long> deptIdList = SysCache.getDeptChildIds(deptId); |
| | | List<Long> deptIdList = new ArrayList<>(); |
| | | if (null!=user.getIsDept()) { |
| | | deptIdList.add(deptId); |
| | | }else { |
| | | deptIdList = SysCache.getDeptChildIds(deptId); |
| | | } |
| | | return page.setRecords(baseMapper.selectUserPage(page, user, deptIdList, tenantId)); |
| | | } |
| | | |