| package com.doumee.dao.system; | 
|   | 
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
| import com.doumee.dao.system.dto.QuerySystemPermissionDTO; | 
| import com.doumee.dao.system.model.SystemPermission; | 
| import com.doumee.dao.system.vo.SystemPermissionListVO; | 
| import org.apache.ibatis.annotations.Param; | 
|   | 
| import java.util.List; | 
|   | 
| public interface SystemPermissionMapper extends BaseMapper<SystemPermission> { | 
|   | 
|     /** | 
|      * 根据用户ID查询 | 
|      * @author Eva.Caesar Liu | 
|      * @date 2023/03/21 14:49 | 
|      */ | 
|     List<SystemPermission> selectByUserId(Integer userId); | 
|   | 
|     /** | 
|      * 根据角色ID查询 | 
|      * @author Eva.Caesar Liu | 
|      * @date 2023/03/21 14:49 | 
|      */ | 
|     List<SystemPermission> selectByRoleId(Integer roleId); | 
|   | 
|     /** | 
|      * 查询列表 | 
|      * @author Eva.Caesar Liu | 
|      * @date 2023/03/21 14:49 | 
|      */ | 
|     List<SystemPermissionListVO> selectManageList(@Param("dto") QuerySystemPermissionDTO dto, @Param("orderByClause") String orderByClause); | 
|   | 
| } |