@Service(value="sysUserService") public class SysUserServiceImpl extends Object implements SysUserService
| Constructor and Description |
|---|
SysUserServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteBatch(Long[] userId)
删除用户
|
Page<UserWindowDto> |
findPage(UserWindowDto userWindowDto,
int pageNum)
根据条件分页查询
|
List<Long> |
queryAllMenuId(Long userId)
查询用户的所有菜单ID
|
List<String> |
queryAllPerms(Long userId)
查询用户的所有权限
|
SysUserEntity |
queryByUserName(String username)
根据用户名,查询系统用户
|
List<SysUserEntity> |
queryList(Map<String,Object> map)
查询用户列表
|
SysUserEntity |
queryObject(Long userId)
根据用户ID,查询用户
|
int |
queryTotal(Map<String,Object> map)
查询总数
|
void |
save(SysUserEntity user)
保存用户
|
void |
update(SysUserEntity user)
修改用户
|
int |
updatePassword(Long userId,
String password,
String newPassword)
修改密码
|
public List<String> queryAllPerms(Long userId)
SysUserServicequeryAllPerms in interface SysUserServiceuserId - 用户IDpublic List<Long> queryAllMenuId(Long userId)
SysUserServicequeryAllMenuId in interface SysUserServicepublic SysUserEntity queryByUserName(String username)
SysUserServicequeryByUserName in interface SysUserServicepublic SysUserEntity queryObject(Long userId)
SysUserServicequeryObject in interface SysUserServicepublic List<SysUserEntity> queryList(Map<String,Object> map)
SysUserServicequeryList in interface SysUserServicepublic int queryTotal(Map<String,Object> map)
SysUserServicequeryTotal in interface SysUserService@Transactional public void save(SysUserEntity user)
SysUserServicesave in interface SysUserService@Transactional public void update(SysUserEntity user)
SysUserServiceupdate in interface SysUserService@Transactional public void deleteBatch(Long[] userId)
SysUserServicedeleteBatch in interface SysUserServicepublic int updatePassword(Long userId, String password, String newPassword)
SysUserServiceupdatePassword in interface SysUserServiceuserId - 用户IDpassword - 原密码newPassword - 新密码public Page<UserWindowDto> findPage(UserWindowDto userWindowDto, int pageNum)
SysUserServicefindPage in interface SysUserServiceCopyright © 2021. All rights reserved.