| | |
| | | blade_menu menu |
| | | WHERE menu.is_deleted = 0 |
| | | <if test="param1!=null"> |
| | | and menu.parent_id = #{param1} |
| | | <choose> |
| | | <when test="param2.super!=null and param1==0"> |
| | | and menu.parent_id = #{param1} and (menu.name = 'web' or menu.name = 'app') |
| | | </when> |
| | | <otherwise> |
| | | and menu.parent_id = #{param1} |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | <if test="param2.name!=null and param2.name!=''"> |
| | | and menu.name like concat(concat('%', #{param2.name}),'%') |
| | |
| | | AND BRM.ROLE_ID = #{roleId} |
| | | AND MENU.IS_DELETED = 0 ORDER BY MENU.SORT ASC |
| | | </select> |
| | | <select id="getButtonList" resultType="cn.gistack.system.vo.MenuVO"> |
| | | SELECT * FROM BLADE_MENU M |
| | | LEFT JOIN BLADE_ROLE_MENU BRM ON M.ID = BRM.MENU_ID |
| | | WHERE BRM.ROLE_ID IN |
| | | <foreach collection="roleIds" index="index" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | AND M.CATEGORY = 2 AND M.IS_DELETED = 0 AND M.BUTTON_REMARK = 'WEB' |
| | | </select> |
| | | |
| | | <!--查询菜单列表(排除 web,app 之外的菜单)--> |
| | | <select id="grantTreeNew" resultMap="treeNodeResultMap"> |
| | | select id, parent_id, name as title, id as "value", id as "key" from YWXT.blade_menu |
| | | where is_deleted = 0 start with ( name = 'web' or name = 'app') CONNECT BY PRIOR id = parent_id order by sort asc |
| | | </select> |
| | | |
| | | </mapper> |