yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/permission/RoleServiceImpl.java
@@ -195,6 +195,14 @@ } @Override public List<RoleDO> getRoleListByCodes(Collection<String> codes) { if (CollUtil.isEmpty(codes)) { return Collections.emptyList(); } return roleMapper.selectListByCodes(codes); } @Override @Cacheable(value = RedisKeyConstants.ROLE, key = "#id", unless = "#result == null") public RoleDO getRoleFromCache(Long id) {