public interface SysUserService extends ExtendService<SysUser>
DEFAULT_BATCH_SIZE| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
addSysUser(SysUserDTO sysUserDto)
新增系统用户
|
boolean |
deleteByUserId(Long userId)
根据userId删除 用户
|
boolean |
existsForOrganization(Long organizationId)
是否存在指定组织的用户
|
UserInfoDTO |
findUserInfo(SysUser user)
获取用户详情信息
|
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> type)
返回用户的select数据
|
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 password)
修改用户密码
|
boolean |
updateSysUser(SysUserDTO sysUserDTO)
更新系统用户信息
|
boolean |
updateUserScope(Long userId,
SysUserScope sysUserScope)
更新用户权限信息
|
boolean |
updateUserStatusBatch(Collection<Long> userIds,
Integer status)
批量修改用户状态
|
getBaseMapper, getById, getEntityClass, list, listByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeById, removeById, removeById, removeByIds, removeByIds, save, saveBatch, saveBatch, saveBatchSomeColumn, saveBatchSomeColumn, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, updateBatchById, updateBatchById, updateByIdcom.hccake.ballcat.common.model.domain.PageResult<SysUserPageVO> queryPage(com.hccake.ballcat.common.model.domain.PageParam pageParam, SysUserQO qo)
pageParam - 分页参数qo - 查询参数对象UserInfoDTO findUserInfo(SysUser user)
user - SysUserboolean addSysUser(SysUserDTO sysUserDto)
sysUserDto - SysUserDTOboolean updateSysUser(SysUserDTO sysUserDTO)
sysUserDTO - 用户DTOboolean updateUserScope(Long userId, SysUserScope sysUserScope)
userId - 用户IDsysUserScope - 用户权限域boolean deleteByUserId(Long userId)
userId - 用户IDboolean updatePassword(Long userId, String password)
userId - 用户IDpassword - 明文密码boolean updateUserStatusBatch(Collection<Long> userIds, Integer status)
userIds - 用户ID集合status - 状态String updateAvatar(org.springframework.web.multipart.MultipartFile file, Long userId) throws IOException
file - 头像文件userId - 用户IDIOException - IO异常List<SysUser> listByRoleCodes(Collection<String> roleCodes)
roleCodes - 角色标识集合List<SysUser> listByOrganizationIds(Collection<Long> organizationIds)
organizationIds - 组织机构id集合List<SysUser> listByUserTypes(Collection<Integer> userTypes)
userTypes - 用户类型集合List<SysUser> listByUserIds(Collection<Long> userIds)
userIds - 用户Id集合List<com.hccake.ballcat.common.model.domain.SelectData<Void>> listSelectData(Collection<Integer> type)
type - 为空时返回所有客户为1返回系统客户 name=> username value => userIdboolean existsForOrganization(Long organizationId)
organizationId - 组织 idCopyright © 2023. All rights reserved.