mirror of https://gitee.com/stylefeng/roses
【8.0.1】【system】用户相关操作日志,增加账号信息
parent
c96c181ad4
commit
d770ca6345
|
@ -81,7 +81,7 @@ public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUs
|
|||
BusinessEventPublisher.publishEvent(UPDATE_USER_ROLE_EVENT, sysUserRoleRequest.getUserId());
|
||||
|
||||
// 记录日志
|
||||
BusinessLogUtil.setLogTitle("为用户绑定角色");
|
||||
BusinessLogUtil.setLogTitle("为用户绑定角色,用户账号:", sysUserService.getUserRealName(sysUserRoleRequest.getUserId()));
|
||||
BusinessLogUtil.addContent("用户id:\n", sysUserRoleRequest.getUserId());
|
||||
BusinessLogUtil.addContent("用户角色信息如下:\n", roleIdList);
|
||||
}
|
||||
|
|
|
@ -109,7 +109,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|||
sysUserRoleService.bindUserDefaultRole(sysUser.getUserId());
|
||||
|
||||
// 记录日志
|
||||
BusinessLogUtil.setLogTitle("新增用户");
|
||||
BusinessLogUtil.setLogTitle("新增用户,用户账号:" + sysUser.getAccount());
|
||||
BusinessLogUtil.addContent("新增用户账号信息:", sysUser.getAccount());
|
||||
BusinessLogUtil.addContent("用户详细信息如下:\n", sysUser);
|
||||
}
|
||||
|
@ -128,7 +128,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|||
this.baseRemoveUser(CollectionUtil.set(false, sysUser.getUserId()));
|
||||
|
||||
// 记录日志
|
||||
BusinessLogUtil.setLogTitle("删除用户");
|
||||
BusinessLogUtil.setLogTitle("删除用户,用户账号:" + sysUser.getAccount());
|
||||
BusinessLogUtil.addContent("新增用户账号信息:", sysUser.getAccount());
|
||||
BusinessLogUtil.addContent("用户详细信息:\n", sysUser);
|
||||
}
|
||||
|
@ -158,7 +158,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|||
@Override
|
||||
public void edit(SysUserRequest sysUserRequest) {
|
||||
|
||||
BusinessLogUtil.setLogTitle("更新用户信息");
|
||||
BusinessLogUtil.setLogTitle("更新用户信息,用户账号:" + sysUserRequest.getAccount());
|
||||
|
||||
SysUser sysUser = this.querySysUser(sysUserRequest);
|
||||
BusinessLogUtil.addContent("原始用户信息如下:\n", sysUser);
|
||||
|
@ -270,7 +270,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|||
}
|
||||
|
||||
// 记录日志
|
||||
BusinessLogUtil.setLogTitle("更新用户状态");
|
||||
BusinessLogUtil.setLogTitle("更新用户状态,用户账号:" + this.getUserRealName(sysUserRequest.getUserId()));
|
||||
BusinessLogUtil.addContent("用户id:", sysUserRequest.getUserId());
|
||||
BusinessLogUtil.addContent("修改状态为:", sysUserRequest.getStatusFlag());
|
||||
}
|
||||
|
@ -291,7 +291,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|||
this.updateById(sysUser);
|
||||
|
||||
// 记录日志
|
||||
BusinessLogUtil.setLogTitle("重置用户密码");
|
||||
BusinessLogUtil.setLogTitle("重置用户密码,用户账号:" + sysUser.getRealName());
|
||||
BusinessLogUtil.addContent("用户信息如下:\n", sysUser);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue