| | |
| | | import org.springblade.core.tool.utils.*; |
| | | import org.springblade.modules.auth.enums.UserEnum; |
| | | import org.springblade.modules.system.entity.*; |
| | | import org.springblade.modules.system.excel.SecurityExcel; |
| | | import org.springblade.modules.system.excel.UserExcel; |
| | | import org.springblade.modules.system.mapper.UserMapper; |
| | | import org.springblade.modules.system.service.IRoleService; |
| | |
| | | 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> selectUserPage(IPage<User> page, User user, Long deptId, String tenantId) { |
| | | public IPage<UserVO> selectUserPage(IPage<UserVO> page, UserVO user, Long deptId, String tenantId) { |
| | | List<Long> deptIdList = SysCache.getDeptChildIds(deptId); |
| | | return page.setRecords(baseMapper.selectUserPage(page, user, deptIdList, tenantId)); |
| | | } |
| | |
| | | * 自定义用户列表(只有保安员) |
| | | */ |
| | | @Override |
| | | public IPage<User> selectUserPageSecurity(IPage<User> page, User user, Long deptId, String tenantId) { |
| | | List<Long> deptIdList = SysCache.getDeptChildIds(deptId); |
| | | return page.setRecords(baseMapper.selectUserPageSecurity(page, user, deptIdList, tenantId)); |
| | | public IPage<UserVO> selectUserPageSecurity(IPage<UserVO> page, UserVO user) { |
| | | return page.setRecords(baseMapper.selectUserPageSecurity(page, user)); |
| | | } |
| | | |
| | | /** |
| | | * 查询所有未注销用户 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<User> getAllUserList() { |
| | | return baseMapper.getAllUserList(); |
| | | } |
| | | |
| | | /** |
| | | * 查询用户数据,未删除的,未审核的 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<User> getNotAuditAllUserList() { |
| | | return baseMapper.getNotAuditAllUserList(); |
| | | } |
| | | |
| | | /** |
| | | * 自定义列表,... |
| | | * @param page |
| | | * @param user |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<User> selectUserPages(IPage<User> page, User user) { |
| | | return page.setRecords(baseMapper.selectUserPages(page, user)); |
| | | } |
| | | |
| | | /** |
| | | * 根据保安员编码查询保安员信息 |
| | | * @param securityNumber |
| | | * @return |
| | | */ |
| | | @Override |
| | | public UserVO getUserInfoBySecurityNumber(String securityNumber) { |
| | | return baseMapper.getUserInfoBySecurityNumber(securityNumber); |
| | | } |
| | | |
| | | /** |
| | | * 导出用户审查明细 |
| | | * @param user |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<SecurityExcel> exportSecurity(UserVO user) { |
| | | return baseMapper.exportSecurity(user); |
| | | } |
| | | |
| | | @Override |
| | | public List selectPeo(UserVO user) { |
| | | return baseMapper.selectPeo(user); |
| | | } |
| | | |
| | | |
| | | } |