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

This commit is contained in:
李昆鹏 2024-07-25 13:43:26 +08:00
parent 37f5536b7e
commit 2116197ce5

View File

@ -283,7 +283,7 @@ public class FeatureResourceSyncServiceImpl implements FeatureResourceSyncServic
// } // }
List<SaasRole> saasRoles = saasRoleDao.listByRoleCodes(roleCodes); List<SaasRole> saasRoles = saasRoleDao.listByRoleCodes(roleCodes);
if (CollectionUtils.isNotEmpty(saasRoles)) { if (CollectionUtils.isEmpty(saasRoles)) {
return logResourceBindRoleDO; return logResourceBindRoleDO;
} }
List<SaasPgroupRoleRelation> saasPgroupRoleRelations = saasPgroupRoleRelationDao.findByRoleIds(saasRoles.stream().map(BaseEntity::getId).collect(Collectors.toList())); List<SaasPgroupRoleRelation> saasPgroupRoleRelations = saasPgroupRoleRelationDao.findByRoleIds(saasRoles.stream().map(BaseEntity::getId).collect(Collectors.toList()));