| | |
| | | menu.getParams().put("userId", userId); |
| | | menuList = menuMapper.selectMenuListByUserId(menu); |
| | | }*/ |
| | | return menuMapper.selectMenuListByUserId(menu, SecurityUtils.isAdmin(userId) ? null : userId); |
| | | menu.setMenuId(SecurityUtils.isAdmin(userId) ? null : userId); |
| | | return menuMapper.selectMenuListByUserId(menu); |
| | | } |
| | | |
| | | /** |
| | |
| | | left join sys_role_menu rm on m.menu_id = rm.menu_id |
| | | left join sys_user_role ur on rm.role_id = ur.role_id |
| | | left join sys_role ro on ur.role_id = ro.role_id |
| | | -- where ur.user_id = #{params.userId} |
| | | <where> |
| | | <if test="userId != null"> |
| | | ur.user_id = #{userId} |
| | | <if test="menuId != null"> |
| | | ur.user_id = #{menuId} |
| | | </if> |
| | | <if test="menuName != null and menuName != ''"> |
| | | AND m.menu_name like concat('%', #{menuName}, '%') |