All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zznote.basecommon.dao.TRoleDao Maven / Gradle / Ivy

The newest version!
package com.zznote.basecommon.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zznote.basecommon.common.annotation.DataColumn;
import com.zznote.basecommon.common.annotation.DataPermission;
import com.zznote.basecommon.entity.system.TRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色信息表
 * 
 * @author zhangzhen
 * @email [email protected]
 * @date 2022-04-12 17:04:17
 */
@Mapper
public interface TRoleDao extends BaseMapper {

    List selectRolePermissionByUserId(Long userId);

    /**
     * 根据条件分页查询角色数据
     *
     * @param queryWrapper 查询条件
     * @return 角色数据集合信息
     */
    @DataPermission({
            @DataColumn(key = "deptName", value = "d.dept_id")
    })
    List selectRoleList(@Param(Constants.WRAPPER) Wrapper queryWrapper);

    @DataPermission({
            @DataColumn(key = "deptName", value = "d.dept_id")
    })
    Page selectPageRoleList(@Param("page") Page page, @Param(Constants.WRAPPER) Wrapper queryWrapper);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy