package cn.pluss.platform.mapper;

import cn.pluss.platform.entity.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 用户角色表 Mapper 接口
 * </p>
 *
 * @author bzg
 * @since 2022-01-13
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {

    @Select("SELECT * FROM tb_pluss_user_role WHERE roleCode = #{roleCode}")
    UserRole getByRoleCode(String roleCode);
}
