| | |
| | | where u.user_id = #{userId} and m.menu_type in ('M', 'C') and m.status = 0 AND ro.status = 0 |
| | | order by m.parent_id, m.order_num |
| | | </select> |
| | | |
| | | |
| | | <select id="selectMenuListByRoleId" resultType="Long"> |
| | | select m.menu_id |
| | | from sys_menu m |
| | |
| | | <include refid="selectMenuVo"/> |
| | | where menu_name=#{menuName} and parent_id = #{parentId} limit 1 |
| | | </select> |
| | | |
| | | |
| | | <select id="selectMenuByPath" resultType="com.ruoyi.project.system.domain.SysMenu" parameterType="java.lang.String"> |
| | | SELECT menu_id, menu_name, parent_id, path, app_component, status |
| | | FROM sys_menu |
| | | WHERE path = #{path} |
| | | AND status = '0' LIMIT 1 |
| | | </select> |
| | | |
| | | <update id="updateMenu" parameterType="com.ruoyi.project.system.domain.SysMenu"> |
| | | update sys_menu |
| | | <set> |