49 lines
1.3 KiB
Java
49 lines
1.3 KiB
Java
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<SysRole> 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<SysRole> userRoles(@Param("roleIds") List<String> roleIds);
|
|
|
|
/*用户角色*/
|
|
List<SysRole> findAll();
|
|
|
|
/*角色分页*/
|
|
List<SysRole> rolePage(@Param("condition") String condition);
|
|
|
|
/*管理员角色*/
|
|
SysRole adminRole(@Param("manageState") Integer manageState);
|
|
|
|
/*修改角色*/
|
|
Integer changeRole(@Param("record") SysRole record);
|
|
}
|