package com.dy.pmsGlobal.daoBa; import com.dy.pmsGlobal.pojoBa.BaRole; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; @Mapper public interface BaRoleMapper { BaRole selectByPrimaryKey(Long id); /** * 查询某个用户所隶属于的角色 * @param userId 用户ID * @return List */ List selectByUserId(@Param("userId") Long userId) ; int insert(BaRole record); int insertSelective(BaRole record); int updateByPrimaryKeySelective(BaRole record); int updateByPrimaryKey(BaRole record); int deleteByPrimaryKey(Long id); }