public abstract class LogEntityService extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected com.baomidou.mybatisplus.core.mapper.BaseMapper |
mapper
数据库表的mapper:允许子类直接访问
|
| 构造器和说明 |
|---|
LogEntityService() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
bindMapper()
子类将自己的mapper绑定到父类上
|
int |
deleteEntity(Long startId,
Long endId)
根据起始ID和结束ID删除记录
|
abstract String |
getEntityType() |
void |
insertEntity(LogEntity entity)
插入实体
|
LogEntity |
selectEntity(Long id)
根据id,查询实体
|
List<LogEntity> |
selectEntity(com.baomidou.mybatisplus.core.conditions.query.QueryWrapper queryWrapper)
根据Key特征,查询实体
|
List<LogEntity> |
selectEntityListByPage(Long pageId,
Long pageSize)
分页查询数据:从起始ID为pageId开始,最多pageSize条记录
可以根据返回的记录数目是否为pageSize,来判定是否已经最后一页数据
|
public abstract void bindMapper()
public abstract String getEntityType()
public List<LogEntity> selectEntityListByPage(Long pageId, Long pageSize)
pageId - 起始日志IDpageSize - 希望获取的日志数量public List<LogEntity> selectEntity(com.baomidou.mybatisplus.core.conditions.query.QueryWrapper queryWrapper)
queryWrapper - 查询条件public void insertEntity(LogEntity entity)
entity - 实体Copyright © 2024. All rights reserved.