审计日志相关代码提交

This commit is contained in:
2022-07-13 20:16:32 +08:00
parent 783e75e341
commit 128518989f
19 changed files with 100 additions and 46 deletions

View File

@@ -89,6 +89,13 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
}
//超级管理员则不做任何逻辑判断
if (user.getType() == 0) {
//更新用户登录时间,以及错误登录记录的信息归零。
user.setState(UserState.ENABLE);
user.setLoginErrorTimes(0);
user.setLoginTime(LocalDateTime.now());
user.setFirstErrorTime(null);
user.setLockTime(null);
this.baseMapper.updateById(user);
return;
}
//根据用户类型获取对应用户策略

View File

@@ -51,6 +51,6 @@ mybatis-plus:
mqtt:
uri: tcp://@middle.server.url@:1883
client-id: @artifactId@
client-id: @artifactId@${random.value}
username: t_user
password: njcnpqs