| | |
| | | |
| | | <select id="selectMenuChildByBtnType" resultMap="menuResultMap"> |
| | | select pm.* |
| | | from pl_sys_menu ps, pl_sys_menu 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 order by pm.sort asc |
| | | 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> |