修改登陆报错
This commit is contained in:
@ -83,7 +83,7 @@ public class Menu implements Serializable {
|
|||||||
private String permission;
|
private String permission;
|
||||||
|
|
||||||
|
|
||||||
/** 类型 */
|
/** 类型,目录、菜单、按钮 */
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
|
|
||||||
|
@ -37,6 +37,6 @@ public interface MenuMapper extends CoreMapper<Menu> {
|
|||||||
|
|
||||||
@Select("select m.* from menu m LEFT JOIN roles_menus t on m.id= t.menu_id LEFT JOIN role r on r.id = t.role_id where r.id = #{roleId}")
|
@Select("select m.* from menu m LEFT JOIN roles_menus t on m.id= t.menu_id LEFT JOIN role r on r.id = t.role_id where r.id = #{roleId}")
|
||||||
Set<Menu> findMenuByRoleId(@Param("roleId") Long roleId);
|
Set<Menu> findMenuByRoleId(@Param("roleId") Long roleId);
|
||||||
@Select("<script>select m.* from menu m LEFT JOIN roles_menus t on m.id= t.menu_id LEFT JOIN role r on r.id = t.role_id where r.id in <foreach collection=\"roleIds\" index=\"index\" item=\"item\" open=\"(\" separator=\",\" close=\")\">#{item}</foreach></script>")
|
@Select("<script>select m.* from menu m LEFT OUTER JOIN roles_menus t on m.id= t.menu_id LEFT OUTER JOIN role r on r.id = t.role_id where m.type!=2 and r.id in <foreach collection=\"roleIds\" index=\"index\" item=\"item\" open=\"(\" separator=\",\" close=\")\">#{item}</foreach> order by m.sort asc</script>")
|
||||||
List<Menu> selectListByRoles(@Param("roleIds") List<Long> roleIds);
|
List<Menu> selectListByRoles(@Param("roleIds") List<Long> roleIds);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user