| package doumeemes.dao.system; | 
|   | 
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
| import doumeemes.dao.system.dto.QuerySystemRoleDTO; | 
| import doumeemes.dao.system.model.*; | 
| import doumeemes.dao.system.vo.SystemRoleListVO; | 
| import org.apache.ibatis.annotations.Param; | 
|   | 
| import java.util.List; | 
|   | 
| public interface SystemRoleMapper extends BaseMapper<SystemRole> { | 
|   | 
|     /** | 
|      * 查询角色列表 | 
|      * @author Eva.Caesar Liu | 
|      * @date 2022/04/18 18:12 | 
|      */ | 
|     List<SystemRoleListVO> selectManageList(@Param("dto") QuerySystemRoleDTO dto, @Param("orderByClause") String orderByClause); | 
|   | 
|     /** | 
|      * 根据用户ID查询 | 
|      * @author Eva.Caesar Liu | 
|      * @date 2022/04/18 18:12 | 
|      */ | 
|     List<SystemRole> selectByUserId(Integer userId); | 
|     void insertRoleUserBatch(List<SystemUserRole> list); | 
|     void insertRoleMenuBatch(List<SystemRoleMenu> list); | 
|     void insertRolePermissionBatch(List<SystemRolePermission> list); | 
|     void insertDataPermissionBatch(List<SystemDataPermission> list); | 
|     List<SystemRole> selectByUserModel(@Param("userId") Integer userId,@Param("dto") SystemRole dto); | 
|   | 
| } |