package com.stylefeng.guns.modular.system.dao; import com.baomidou.mybatisplus.mapper.BaseMapper; import com.stylefeng.guns.core.node.ZTreeNode; import com.stylefeng.guns.modular.system.model.Role; import com.stylefeng.guns.modular.system.model.RoleVo; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; /** *

* 角色表 Mapper 接口 *

* * @author stylefeng * @since 2017-07-11 */ public interface RoleMapper extends BaseMapper { /** * 根据条件查询角色列表 * * @return * @date 2017年2月12日 下午9:14:34 */ List> selectRoles(@Param("condition") String condition); /** * 删除某个角色的所有权限 * * @param roleId 角色id * @return * @date 2017年2月13日 下午7:57:51 */ int deleteRolesById(@Param("roleId") Integer roleId); /** * 获取角色列表树 * * @return * @date 2017年2月18日 上午10:32:04 */ List roleTreeList(); /** * 获取角色列表树 * * @return * @date 2017年2月18日 上午10:32:04 */ List roleTreeListByRoleId(String[] roleId); List getDept(@Param("deptid") Integer deptid); }