package com.bofeng.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.bofeng.entity.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface YeweihuiUserRoleMapper extends BaseMapper<SysUserRole> {

    @Select("select property_id from sys_user_role where user_id=#{userId} and role_id=2")
    long queryPropertyIdByUserId(@Param("userId") Long userId);
}
