接口 BaseMapper<T>
-
public interface BaseMapper<T>BaseMapper- 从以下版本开始:
- 2022/4/4
- 作者:
- jiangcs
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 intdeleteByIds(java.lang.String ids)根据 ids 删除intinsert(T t)新增TselectById(java.lang.Long id)根据 id 查询记录java.util.List<T>selectList(IQuery query)查询列表TselectOne(IQuery query)查询记录java.util.List<T>selectPage(Page page, IQuery query)查询分页列表intupdate(T t)更新
-
-
-
方法详细资料
-
selectById
T selectById(java.lang.Long id)
根据 id 查询记录- 参数:
id- 主键ID- 返回:
- 实体记录
-
selectPage
java.util.List<T> selectPage(@Param("pg") Page page, @Param("q") IQuery query)
查询分页列表- 参数:
page- 分页参数query- 查询参数- 返回:
- 实体记录集合
-
insert
int insert(T t)
新增- 参数:
t- 实体参数- 返回:
- 新增记录数
-
update
int update(T t)
更新- 参数:
t- 实体参数- 返回:
- 更新记录数
-
deleteByIds
int deleteByIds(java.lang.String ids)
根据 ids 删除- 参数:
ids- 主键ID,多个以逗号分隔- 返回:
- 删除记录数
-
-