接口 UserService
- 所有超级接口:
HiverBaseService<User,Long>
- 所有已知实现类:
UserServiceImpl
用户接口
尊重知识产权,CV 请保留版权,海文科技 https://hiver.cc 出品,不允许非法使用,后果自负
- 作者:
- Yazhi Li
-
方法概要
修饰符和类型方法说明通过条件获得用户列表org.springframework.data.domain.Page<User>findByCondition(User user, SearchVo searchVo, org.springframework.data.domain.Pageable pageable) 多条件分页获取用户findByDeletedAndStatusAndDepartmentId(Integer deleted, Integer status, Long departmentId) 通过部门获得员工列表findByDepartmentId(Long departmentId) 通过部门id获取findByEmail(String email) 通过邮件和状态获取用户findByMobile(String mobile) 通过手机获取用户findByUsername(String username) 通过用户名获取用户findByUsernameLikeAndStatus(String username, Integer status) 通过用户名模糊搜索findByUsernameOrEmailOrMobile(String username, String email, String mobile) 搜索用户voidupdateDepartmentTitle(Long departmentId, String departmentTitle) 更新部门名称从接口继承的方法 plus.hiver.common.base.HiverBaseService
count, delete, delete, delete, deleteAllById, findAll, findAll, findAll, findById, flush, get, getAll, getTotalCount, save, saveOrUpdateAll, update
-
方法详细资料
-
findByUsername
通过用户名获取用户 -
findByMobile
通过手机获取用户 -
findByEmail
通过邮件和状态获取用户 -
findByCondition
org.springframework.data.domain.Page<User> findByCondition(User user, SearchVo searchVo, org.springframework.data.domain.Pageable pageable) 多条件分页获取用户 -
findByDepartmentId
通过部门id获取 -
findByUsernameLikeAndStatus
通过用户名模糊搜索 -
updateDepartmentTitle
更新部门名称 -
findByDeletedAndStatusAndDepartmentId
List<User> findByDeletedAndStatusAndDepartmentId(Integer deleted, Integer status, Long departmentId) 通过部门获得员工列表 -
findByAll
通过条件获得用户列表 -
findByUsernameOrEmailOrMobile
搜索用户- 参数:
username-email-mobile-- 返回:
-