接口 BaseMapper<T>
-
public interface BaseMapper<T>BaseMapper- 从以下版本开始:
- 2022/4/4
- 作者:
- jiangcs
-
-
方法详细资料
-
selectById
T selectById(java.lang.Long id)
根据 id 查询记录- 参数:
id- 主键ID- 返回:
- 实体记录
-
selectList
java.util.List<T> selectList(@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,多个以逗号分隔- 返回:
- 删除记录数
-
-