🐛 fix bug. 缓存名称不统一 导致删除无法删除

This commit is contained in:
冷冷 committed 2019-03-27 00:19:59 +08:00
1 parent d69985b809
commit 8df0e3e4cc
1 file changed
+1 -1
@@ -52,7 +52,7 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
private final SysRoleMenuMapper sysRoleMenuMapper;
@Override
@Cacheable(value = "menu_details#2000", key = "#roleId + '_menu'")
@Cacheable(value = "menu_details", key = "#roleId + '_menu'")
public List<MenuVO> findMenuByRoleId(Integer roleId) {
return baseMapper.listMenusByRoleId(roleId);
}