审计日志相关代码提交

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

@@ -29,10 +29,8 @@ public class UserLogServiceImpl extends ServiceImpl<UserLogMapper, UserLog> impl
public void addUserLog(LogInfoDTO logInfoDTO) {
UserLog userLog = new UserLog();
BeanUtil.copyProperties(logInfoDTO, userLog);
if(logInfoDTO.getIsLogin() == 0){
userLog.setCreateBy(userLog.getUserName());
userLog.setUpdateBy(userLog.getUserName());
}
userLog.setCreateBy(logInfoDTO.getUserIndex());
userLog.setUpdateBy(logInfoDTO.getUserIndex());
userLog.setState(0);
this.baseMapper.insert(userLog);
}

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