package com.kidgrow.usercenter.mapper; import com.kidgrow.common.model.SysMenu; import com.kidgrow.db.mapper.SuperMapper; import com.kidgrow.usercenter.model.SysRoleMenu; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Set; /** * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020
* * @Description: 角色菜单
* @Project:
* @CreateDate: Created in 2020/2/13 16:31
* @Author: liuke */ @Mapper public interface SysRoleMenuMapper extends SuperMapper { @Insert("insert into sys_role_menu(role_id, menu_id) values(#{roleId}, #{menuId})") int save(@Param("roleId") Long roleId, @Param("menuId") Long menuId); int delete(@Param("roleId") Long roleId, @Param("menuId") Long menuId); List findMenusByRoleIds(@Param("roleIds") Set roleIds, @Param("type") Integer type); List findMenusByRoleCodes(@Param("roleCodes") Set roleCodes, @Param("type") Integer type,@Param("tenantId") String tenantId); }