| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.kidgrow.usercenter.mapper.SysRoleMenuMapper"> |
| | | |
| | | <update id="delete"> |
| | | <delete id="delete"> |
| | | delete from sys_role_menu |
| | | <where> |
| | | <if test="roleId != null"> |
| | |
| | | and menu_id = #{menuId} |
| | | </if> |
| | | </where> |
| | | </update> |
| | | </delete> |
| | | |
| | | <select id="findMenusByRoleIds" resultType="com.kidgrow.common.model.SysMenu"> |
| | | select distinct t.* from sys_menu t |
| | |
| | | <if test="type != null"> |
| | | and t.type = #{type} |
| | | </if> |
| | | <if test="tenantId != null and tenantId !=''"> |
| | | and t.tenant_id = #{tenantId} |
| | | </if> |
| | | and t.hidden = 0 |
| | | and t.enabled = 1 |
| | | ORDER BY sort ASC |