src/main/java/com/moral/mapper/RoleMapper.java
@@ -7,11 +7,14 @@ import com.moral.common.mapper.BaseMapper; import com.moral.entity.Role; import tk.mybatis.mapper.entity.Example; public interface RoleMapper extends BaseMapper<Role> { int insertSelective(Role role); int updateByPrimaryKey(Role role); int updateByPrimaryKeySelective(Role role); List<Role> getRoleListByName(@Param("roleName") String roleName); List<Role> getRoleList(@Param("roleName") String roleName); List<Role> getRoleList(Example example); }