| | |
| | | ORDER BY menu.sort |
| | | </select> |
| | | |
| | | <select id="lazyMenuList" resultMap="menuVOResultMap"> |
| | | <select id="lazyMenuPage" resultMap="menuVOResultMap"> |
| | | SELECT |
| | | menu.*, |
| | | ( |
| | |
| | | </select> |
| | | |
| | | <select id="grantTree" resultMap="treeNodeResultMap"> |
| | | select id, parent_id, name as title, id as "value", id as "key" from pl_sys_menu where is_deleted = 0 order by sort |
| | | select |
| | | id, |
| | | parent_id, |
| | | name as title, |
| | | id as "value", |
| | | id as "key" |
| | | from pl_sys_menu where is_deleted = 0 order by sort |
| | | </select> |
| | | |
| | | <select id="grantTreeByRole" resultMap="treeNodeResultMap"> |
| | |
| | | GROUP BY m.path |
| | | </select> |
| | | |
| | | <select id="selectMenuChildByBtnType" resultMap="menuResultMap"> |
| | | select pm.* |
| | | from pl_sys_menu ps, pl_sys_menu pm |
| | | where pm.is_deleted = 0 |
| | | and ps.category = 1 |
| | | and ps.CODE = #{btmType} |
| | | and ps.ID = pm.PARENT_ID |
| | | <if test="roleIds != null and roleIds != ''"> |
| | | and ps.ID in ( |
| | | SELECT menu_id FROM pl_org_role_menu WHERE role_id IN |
| | | <foreach collection="roleIds" index="index" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | ) |
| | | </if> |
| | | order by pm.sort asc |
| | | </select> |
| | | |
| | | </mapper> |