@Service public class UserServiceImpl extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<UserMapper,User> implements IUserService
系统用户表 服务实现类
| 限定符和类型 | 字段和说明 |
|---|---|
static Pattern |
INCLUDE_ALL_REGEX
Reg:同时包含大小写字母数字、下划线,特殊符号
|
static Pattern |
INCLUDE_UPLETTER_LOLTTER_NUMBER_REGEX
Reg:同时包含大小写字母和数字
|
static Pattern |
INCLUDELETTERNUMBER_REGEX
Reg:同时包含字母和数字
|
static Pattern |
UserPattern |
| 构造器和说明 |
|---|
UserServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
com.ssrs.framework.core.OperateReport |
addUser(UserParm userParm) |
String |
beforeUpdatePassword(String password,
User user)
修改密码之前执行三级等保功能
|
com.ssrs.framework.core.OperateReport |
deleteUser(String userNames)
删除一个用户需要做的步骤: 更新机构中的用户数 删除用户与角色的关系 更新角色中的用户数 删除这个用户的所有权限记录
|
User |
getOneByUserName(String userName) |
com.ssrs.framework.core.OperateReport |
saveUser(UserParm userParm) |
closeSqlSession, count, currentModelClass, executeBatch, getBaseMapper, getById, getMap, getObj, getOne, list, listByIds, listByMap, listMaps, listObjs, page, pageMaps, remove, removeById, removeByIds, removeByMap, retBool, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, update, updateBatchById, updateByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, count, getBaseMapper, getById, getMap, getObj, getOne, getOne, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateByIdpublic static Pattern UserPattern
public static final Pattern INCLUDELETTERNUMBER_REGEX
public static final Pattern INCLUDE_UPLETTER_LOLTTER_NUMBER_REGEX
public static final Pattern INCLUDE_ALL_REGEX
public User getOneByUserName(String userName)
getOneByUserName 在接口中 IUserService@Transactional(rollbackFor=java.lang.Exception.class) public com.ssrs.framework.core.OperateReport addUser(UserParm userParm)
addUser 在接口中 IUserService@Transactional(rollbackFor=java.lang.Exception.class) public com.ssrs.framework.core.OperateReport saveUser(UserParm userParm)
saveUser 在接口中 IUserService@Transactional(rollbackFor=java.lang.Exception.class) public com.ssrs.framework.core.OperateReport deleteUser(String userNames)
deleteUser 在接口中 IUserServicepublic String beforeUpdatePassword(String password, User user)
beforeUpdatePassword 在接口中 IUserServicepassword - user - Copyright © 2020. All rights reserved.