SysRoleMapper.java
1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.glsx.usercenter.mapper;
import com.glsx.usercenter.pojo.menu.SysMenu;
import com.glsx.usercenter.pojo.role.SysRole;
import com.glsx.usercenter.pojo.role.SysRoleExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface SysRoleMapper {
int deleteByExample(SysRoleExample example);
int deleteByPrimaryKey(Integer id);
int insert(SysRole sysRole);
int insertSelective(SysRole sysRole);
List<SysRole> selectByExample(SysRoleExample example);
SysRole selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("sysRole") SysRole sysRole, @Param("example") SysRoleExample example);
int updateByExample(@Param("sysRole") SysRole sysRole, @Param("example") SysRoleExample example);
int updateByPrimaryKeySelective(SysRole sysRole);
int updateByPrimaryKey(SysRole sysRole);
int deleteRoleById(Integer[] id);
List<SysMenu> getMenuByRoleId(Integer id);
Integer getIdByCharacter(@Param("permissionCharacter")String permissionCharacter);
}