|  |  |  | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Mapper; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Param; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  | import java.util.Map; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Mapper | 
|---|
|  |  |  | public interface BaUserRoleMapper extends BaseMapper<BaUserRole> { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | * @param record the record | 
|---|
|  |  |  | * @return insert count | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | int insert(BaUserRole record); | 
|---|
|  |  |  | int putin(BaUserRole record); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * insert record to table selective | 
|---|
|  |  |  | 
|---|
|  |  |  | * @return deleteCount | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | int deleteByRoleId(@Param("roleId") Long roleId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据用户编号获取权限列表 | 
|---|
|  |  |  | * @param userId | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<Map<String, Object>> getPermissionsByUserId(@Param("userId") Long userId); | 
|---|
|  |  |  | } | 
|---|