@Service public class SysUserServiceImpl extends ExtendServiceImpl<SysUserMapper,SysUser> implements SysUserService
baseMapper, entityClass, log, mapperClassDEFAULT_BATCH_SIZE| 构造器和说明 |
|---|
SysUserServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
addSysUser(SysUserDTO sysUserDto)
新增系统用户
|
boolean |
deleteByUserId(Long userId)
根据userId删除 用户
|
boolean |
existsForOrganization(Long organizationId)
是否存在指定组织的用户
|
UserInfoDTO |
findUserInfo(SysUser sysUser)
通过查用户的全部信息
|
SysUser |
getByUsername(String username)
根据用户名查询用户
|
List<SysUser> |
listByOrganizationIds(Collection<Long> organizationIds)
根据组织机构ID查询用户
|
List<SysUser> |
listByRoleCode(String roleCode)
根据角色查询用户
|
List<SysUser> |
listByRoleCodes(Collection<String> roleCodes)
根据角色查询用户
|
List<SysUser> |
listByUserIds(Collection<Long> userIds)
根据用户Id集合查询用户
|
List<SysUser> |
listByUserTypes(Collection<Integer> userTypes)
根据用户类型查询用户
|
List<String> |
listRoleCodes(Long userId)
获取用户的角色Code集合
|
List<com.hccake.ballcat.common.model.domain.SelectData<Void>> |
listSelectData(Collection<Integer> userTypes)
返回用户的select数据 name=> username value => userId
|
com.hccake.ballcat.common.model.domain.PageResult<SysUserPageVO> |
queryPage(com.hccake.ballcat.common.model.domain.PageParam pageParam,
SysUserQO qo)
根据QueryObject查询分页数据
|
String |
updateAvatar(org.springframework.web.multipart.MultipartFile file,
Long userId)
修改系统用户头像
|
boolean |
updatePassword(Long userId,
String rawPassword)
修改用户密码
|
boolean |
updateSysUser(SysUserDTO sysUserDTO)
更新系统用户信息
|
boolean |
updateUserScope(Long userId,
SysUserScope sysUserScope)
更新用户权限信息
|
boolean |
updateUserStatusBatch(Collection<Long> userIds,
Integer status)
批量修改用户状态
|
currentMapperClass, currentModelClass, executeBatch, getBaseMapper, getEntityClass, getSqlStatement, removeBatchByIds, removeBatchByIds, removeById, removeById, removeByIds, retBool, saveBatch, saveBatchSomeColumn, saveOrUpdate, saveOrUpdateBatch, updateBatchByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBaseMapper, getById, getEntityClass, list, listByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeById, removeById, removeById, removeByIds, removeByIds, save, saveBatch, saveBatch, saveBatchSomeColumn, saveBatchSomeColumn, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, updateBatchById, updateBatchById, updateByIdpublic com.hccake.ballcat.common.model.domain.PageResult<SysUserPageVO> queryPage(com.hccake.ballcat.common.model.domain.PageParam pageParam, SysUserQO qo)
queryPage 在接口中 SysUserServicepageParam - 分页参数qo - 查询参数对象public SysUser getByUsername(String username)
getByUsername 在接口中 SysUserServiceusername - 用户名public UserInfoDTO findUserInfo(SysUser sysUser)
findUserInfo 在接口中 SysUserServicesysUser - 用户@Transactional(rollbackFor=java.lang.Exception.class) public boolean addSysUser(SysUserDTO sysUserDto)
addSysUser 在接口中 SysUserServicesysUserDto - 系统用户DTO@Transactional(rollbackFor=java.lang.Exception.class) public boolean updateSysUser(SysUserDTO sysUserDTO)
updateSysUser 在接口中 SysUserServicesysUserDTO - 系统用户DTO@Transactional(rollbackFor=java.lang.Exception.class) public boolean updateUserScope(Long userId, SysUserScope sysUserScope)
updateUserScope 在接口中 SysUserServiceuserId - 用户IdsysUserScope - 系统用户权限范围public boolean deleteByUserId(Long userId)
deleteByUserId 在接口中 SysUserServiceuserId - 用户IDpublic boolean updatePassword(Long userId, String rawPassword)
updatePassword 在接口中 SysUserServiceuserId - 用户IDrawPassword - 明文密码public boolean updateUserStatusBatch(Collection<Long> userIds, Integer status)
updateUserStatusBatch 在接口中 SysUserServiceuserIds - 用户ID集合status - 状态@Transactional(rollbackFor=java.lang.Exception.class) public String updateAvatar(org.springframework.web.multipart.MultipartFile file, Long userId) throws IOException
SysUserServiceupdateAvatar 在接口中 SysUserServicefile - 头像文件userId - 用户IDIOException - IO异常public List<SysUser> listByRoleCode(String roleCode)
listByRoleCode 在接口中 SysUserServiceroleCode - 角色标识public List<SysUser> listByRoleCodes(Collection<String> roleCodes)
listByRoleCodes 在接口中 SysUserServiceroleCodes - 角色标识集合public List<SysUser> listByOrganizationIds(Collection<Long> organizationIds)
listByOrganizationIds 在接口中 SysUserServiceorganizationIds - 组织机构id集合public List<SysUser> listByUserTypes(Collection<Integer> userTypes)
listByUserTypes 在接口中 SysUserServiceuserTypes - 用户类型集合public List<SysUser> listByUserIds(Collection<Long> userIds)
listByUserIds 在接口中 SysUserServiceuserIds - 用户Id集合public List<com.hccake.ballcat.common.model.domain.SelectData<Void>> listSelectData(Collection<Integer> userTypes)
listSelectData 在接口中 SysUserServiceuserTypes - 用户类型public List<String> listRoleCodes(Long userId)
listRoleCodes 在接口中 SysUserServiceuserId - 用户idpublic boolean existsForOrganization(Long organizationId)
existsForOrganization 在接口中 SysUserServiceorganizationId - 组织 idCopyright © 2023. All rights reserved.