fix(REQ-2774): 权限操作日志记录操作人角色和表名
This commit is contained in:
parent
e24f34eaea
commit
1146fbaba7
@ -25,4 +25,9 @@ public class BasicRoleDO {
|
|||||||
* 角色code
|
* 角色code
|
||||||
*/
|
*/
|
||||||
private String roleCode;
|
private String roleCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 角色名字
|
||||||
|
*/
|
||||||
|
private String roleName;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user