mirror of https://gitee.com/maxjhandsome/pig
🐛 修复了一个 BUG,fix #IKGVU
This commit is contained in:
parent
7dc1c13ba8
commit
2e0395ba39
|
@ -21,10 +21,8 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
|
|||
import com.github.pig.admin.model.entity.SysMenu;
|
||||
import com.github.pig.common.vo.MenuVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.cache.annotation.Cacheable;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
|
@ -42,6 +40,5 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
|
|||
* @param role 角色名称
|
||||
* @return 菜单列表
|
||||
*/
|
||||
@Cacheable(value = "menu_details", key = "#role + '_menu'")
|
||||
List<MenuVO> findMenuByRoleName(@Param("role") String role);
|
||||
}
|
Loading…
Reference in New Issue