类 UserServiceImpl
java.lang.Object
com.baomidou.mybatisplus.extension.repository.AbstractRepository<M,T>
com.baomidou.mybatisplus.extension.repository.CrudRepository<M,T>
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<IUserMapper,SysUser>
com.hengyi.xbaseweb.system.service.impl.UserServiceImpl
- 所有已实现的接口:
com.baomidou.mybatisplus.extension.repository.IRepository<SysUser>,com.baomidou.mybatisplus.extension.service.IService<SysUser>,IUserService
@Service
public class UserServiceImpl
extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<IUserMapper,SysUser>
implements IUserService
Created:2019/3/27
Time:14:41
Author:dongzp
Email:90fanhua@gmail.com
Project:xbaseweb-plus
Use:
-
字段概要
从类继承的字段 com.baomidou.mybatisplus.extension.repository.CrudRepository
baseMapper从类继承的字段 com.baomidou.mybatisplus.extension.repository.AbstractRepository
log从接口继承的字段 com.baomidou.mybatisplus.extension.repository.IRepository
DEFAULT_BATCH_SIZE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明checkUserExist(String account) 通过用户名判断用户是否存在checkUserExistByUserId(Long userId) 通过UserId判断用户是否存在createSysUser(RegisterType registerType, String account) 通过注册类型创建用户(已注销的用户将被恢复)decCreditScore(Long userId, Integer score, String remarks) 减少信用分消费积分deleteUser(Long userId) 删除用户expenseMoney(Long userId, BigDecimal amount, String content) 消费金额findUserByAccount(String account) 通过账户查询用户findUserByEmail(String email) 通过邮箱查询所有用户findUserByInviteCode(String inviteCode) 通过邀请码查询用户基本信息findUserByPhoneNumber(String phoneNumber) 通过手机号码查询所有用户findUserByUserId(Long userId) 通过用户ID查询用户findUserByUsername(String username) 通过用户名查询用户findUsernameByUserId(Long userId) 根据用户ID查询用户名forgetPassword(ForgetPasswordDto forgetPasswordDto) 忘记密码incCreditScore(Long userId, Integer score, String remarks) 加信用分加积分com.baomidou.mybatisplus.core.metadata.IPage<SysUser>queryRecommendUserList(RecommendUserPageDto pageDto, PageQuery pageQuery) 查询用户推荐列表queryUserCountByPostId(Long postId) 查询岗位下用户数量rechargeMoney(Long userId, BigDecimal amount, String content) 充值金额register(UserRegDto userRegDto) 用户注册resetPassword(Long userId) 重置用户密码新增用户transfer(Long userId, Long toUserId, BigDecimal amount, String remarks) 站内余额转账updateAvatar(Long userId, UpdateAvatarDto updateAvatarDto) 更新头像updateEmail(Long userId, UpdateEmailDto updateEmailDto) 修改用户邮箱updateNickname(Long userId, String nickname) 修改昵称updatePassword(Long userId, String oldPass, String newPass) 修改密码updatePhone(Long userId, UpdatePhoneNumberDto updatePhoneNumberDto) 修改用户手机号码updateUser(SysUser user) 编辑用户updateUserDepthPath(Long userId, Long deptId) 更新用户部门路径updateUserStatus(UserStatusDto statusDto) 更新用户状态 1启用 0禁用从类继承的方法 com.baomidou.mybatisplus.extension.repository.CrudRepository
getBaseMapper, getSqlStatement, saveBatch, saveOrUpdateBatch, updateBatchById从类继承的方法 com.baomidou.mybatisplus.extension.repository.AbstractRepository
executeBatch, executeBatch, getEntityClass, getMap, getMapperClass, getObj, getOne, getOneOpt, getSqlSessionFactory, removeById, saveOrUpdate从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.baomidou.mybatisplus.extension.repository.IRepository
count, count, exists, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, getOneOpt, getOneOpt, getOptById, ktQuery, ktUpdate, lambdaQuery, lambdaQuery, lambdaUpdate, list, list, list, list, listByIds, listByMap, listMaps, listMaps, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, update, update, update, updateBatchById, updateById从接口继承的方法 com.baomidou.mybatisplus.extension.service.IService
removeBatchByIds, saveBatch, saveOrUpdateBatch, updateBatchById
-
构造器详细资料
-
UserServiceImpl
public UserServiceImpl()
-
-
方法详细资料
-
findUserByPhoneNumber
从接口复制的说明:IUserService通过手机号码查询所有用户- 指定者:
findUserByPhoneNumber在接口中IUserService- 返回:
-
findUserByEmail
从接口复制的说明:IUserService通过邮箱查询所有用户- 指定者:
findUserByEmail在接口中IUserService- 返回:
-
findUserByUserId
从接口复制的说明:IUserService通过用户ID查询用户- 指定者:
findUserByUserId在接口中IUserService- 返回:
-
findUserByUsername
从接口复制的说明:IUserService通过用户名查询用户- 指定者:
findUserByUsername在接口中IUserService- 返回:
-
findUserByAccount
从接口复制的说明:IUserService通过账户查询用户- 指定者:
findUserByAccount在接口中IUserService- 参数:
account- (username 或 手机号码 或 邮箱)- 返回:
-
findUsernameByUserId
从接口复制的说明:IUserService根据用户ID查询用户名- 指定者:
findUsernameByUserId在接口中IUserService- 返回:
-
resetPassword
从接口复制的说明:IUserService重置用户密码- 指定者:
resetPassword在接口中IUserService- 返回:
-
saveUser
从接口复制的说明:IUserService新增用户- 指定者:
saveUser在接口中IUserService- 返回:
-
updateUser
从接口复制的说明:IUserService编辑用户- 指定者:
updateUser在接口中IUserService- 返回:
-
deleteUser
从接口复制的说明:IUserService删除用户- 指定者:
deleteUser在接口中IUserService- 返回:
-
updateAvatar
从接口复制的说明:IUserService更新头像- 指定者:
updateAvatar在接口中IUserService- 返回:
-
updatePhone
从接口复制的说明:IUserService修改用户手机号码- 指定者:
updatePhone在接口中IUserService- 返回:
-
updateEmail
从接口复制的说明:IUserService修改用户邮箱- 指定者:
updateEmail在接口中IUserService- 返回:
-
forgetPassword
从接口复制的说明:IUserService忘记密码- 指定者:
forgetPassword在接口中IUserService- 返回:
-
checkUserExist
从接口复制的说明:IUserService通过用户名判断用户是否存在- 指定者:
checkUserExist在接口中IUserService- 返回:
-
checkUserExistByUserId
从接口复制的说明:IUserService通过UserId判断用户是否存在- 指定者:
checkUserExistByUserId在接口中IUserService- 返回:
-
findUserByInviteCode
从接口复制的说明:IUserService通过邀请码查询用户基本信息- 指定者:
findUserByInviteCode在接口中IUserService- 返回:
-
updatePassword
从接口复制的说明:IUserService修改密码- 指定者:
updatePassword在接口中IUserService- 返回:
-
updateNickname
从接口复制的说明:IUserService修改昵称- 指定者:
updateNickname在接口中IUserService- 返回:
-
updateUserStatus
从接口复制的说明:IUserService更新用户状态 1启用 0禁用- 指定者:
updateUserStatus在接口中IUserService- 返回:
-
rechargeMoney
从接口复制的说明:IUserService充值金额- 指定者:
rechargeMoney在接口中IUserService- 返回:
-
expenseMoney
从接口复制的说明:IUserService消费金额- 指定者:
expenseMoney在接口中IUserService- 返回:
-
transfer
@Transactional public Boolean transfer(Long userId, Long toUserId, BigDecimal amount, String remarks) 从接口复制的说明:IUserService站内余额转账- 指定者:
transfer在接口中IUserService- 返回:
-
incScore
从接口复制的说明:IUserService加积分- 指定者:
incScore在接口中IUserService- 返回:
-
decScore
从接口复制的说明:IUserService消费积分- 指定者:
decScore在接口中IUserService- 返回:
-
incCreditScore
从接口复制的说明:IUserService加信用分- 指定者:
incCreditScore在接口中IUserService- 返回:
-
decCreditScore
从接口复制的说明:IUserService减少信用分- 指定者:
decCreditScore在接口中IUserService- 返回:
-
queryUserCountByPostId
从接口复制的说明:IUserService查询岗位下用户数量- 指定者:
queryUserCountByPostId在接口中IUserService- 返回:
-
updateUserDepthPath
从接口复制的说明:IUserService更新用户部门路径- 指定者:
updateUserDepthPath在接口中IUserService- 参数:
userId- 用户IDdeptId- 用户部门ID- 返回:
-
queryRecommendUserList
public com.baomidou.mybatisplus.core.metadata.IPage<SysUser> queryRecommendUserList(RecommendUserPageDto pageDto, PageQuery pageQuery) 从接口复制的说明:IUserService查询用户推荐列表- 指定者:
queryRecommendUserList在接口中IUserService- 返回:
-
createSysUser
从接口复制的说明:IUserService通过注册类型创建用户(已注销的用户将被恢复)- 指定者:
createSysUser在接口中IUserService- 返回:
-
register
从接口复制的说明:IUserService用户注册- 指定者:
register在接口中IUserService- 返回:
-