审计日志相关代码提交
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user