| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.*; |
| | | |
| | | import static org.springblade.common.constant.CommonConstant.DEFAULT_PARAM_PASSWORD; |
| | | |
| | |
| | | |
| | | @Override |
| | | public IPage<User> selectUserPages(IPage<User> page, User user, Long deptId) { |
| | | List<Long> deptIdList = SysCache.getDeptChildIds(deptId); |
| | | return page.setRecords(baseMapper.selectUserPages(page, user, deptIdList)); |
| | | // List<Long> deptIdList = SysCache.getDeptChildIds(deptId); |
| | | if (deptId != null){ |
| | | String arr =deptId.toString(); |
| | | List<String> array = Arrays.asList(arr.split(",")); |
| | | return page.setRecords(baseMapper.selectUserPages(page, user, array)); |
| | | }else{ |
| | | return page.setRecords(baseMapper.selectUserPages(page, user, null)); |
| | | } |
| | | |
| | | } |
| | | |
| | | @Override |