fix(REQ-2774): 权限操作日志记录操作人角色和表名

This commit is contained in:
李昆鹏 2024-07-25 11:45:23 +08:00
parent e24f34eaea
commit 1146fbaba7
2 changed files with 6 additions and 1 deletions

View File

@ -25,4 +25,9 @@ public class BasicRoleDO {
* 角色code * 角色code
*/ */
private String roleCode; private String roleCode;
/**
* 角色名字
*/
private String roleName;
} }

View File

@ -64,6 +64,6 @@ public class SaasPgroupPermissionRelationOperateLogServiceImpl implements SaasPg
} }
return saasRoleDao.lambdaQuery().in(BaseEntity::getId, relations.stream().map(SaasRoleUserRelation::getRoleId).collect(Collectors.toList())).list() return saasRoleDao.lambdaQuery().in(BaseEntity::getId, relations.stream().map(SaasRoleUserRelation::getRoleId).collect(Collectors.toList())).list()
.stream().map(e -> BasicRoleDO.builder().roleId(e.getId()).roleCode(e.getRoleCode()).build()).collect(Collectors.toList()); .stream().map(e -> BasicRoleDO.builder().roleId(e.getId()).roleCode(e.getRoleCode()).roleName(e.getName()).build()).collect(Collectors.toList());
} }
} }