yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/permission/RoleServiceImpl.java
@@ -39,7 +39,7 @@ /** * 角色 Service 实现类 * * @author 芋道源码 * @author 超级管理员 */ @Service @Slf4j @@ -190,6 +190,19 @@ } @Override public RoleDO getRoleByCode(String code) { return roleMapper.selectByCode(code); } @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) {