package com.rzyc.mapper; import com.rzyc.model.SysRole; import com.rzyc.model.SysRoleExample; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface SysRoleMapper { long countByExample(SysRoleExample example); int deleteByExample(SysRoleExample example); int deleteByPrimaryKey(String sysroleid); int insert(SysRole record); int insertSelective(SysRole record); List selectByExample(SysRoleExample example); SysRole selectByPrimaryKey(String sysroleid); int updateByExampleSelective(@Param("record") SysRole record, @Param("example") SysRoleExample example); int updateByExample(@Param("record") SysRole record, @Param("example") SysRoleExample example); int updateByPrimaryKeySelective(SysRole record); int updateByPrimaryKey(SysRole record); /*查询用户角色*/ List userRoles(@Param("roleIds") List roleIds); /*用户角色*/ List findAll(); /*角色分页*/ List rolePage(@Param("condition") String condition); /*修改角色*/ Integer changeRole(@Param("record") SysRole record); }