SysUserRoleMapper.java 684 Bytes
package com.glsx.usercenter.mapper;

import com.glsx.usercenter.pojo.user.SysUserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserRoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysUserRole record);

    int insertSelective(SysUserRole record);

    SysUserRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysUserRole record);

    int updateByPrimaryKey(SysUserRole record);

    List<SysUserRole> findUserRoles(@Param(value="userId") Integer userId);

    int deleteByUserId(@Param(value="userId") int userId);

    List<SysUserRole> getRoleByUserId(Integer id);
}