T - object classpublic interface BaseMapper<T>
| 限定符和类型 | 方法和说明 |
|---|---|
int |
batchInsert(List<T> list)
批量新增,可在service层限制每次插入的数量
|
boolean |
checkNotRepeat(Integer id,
String value,
String column)
查询列字段是否没有重复:
|
int |
delete(int[] ids)
批量删除
|
T |
findById(int id)
根据主键id查询对象
|
List<T> |
findByIds(int[] ids)
批量获取
|
int |
insert(T entity)
插入对象
|
List<T> |
list(Lookup lookup)
查询列表
|
int |
update(T entity)
更新数据
|
T findById(@Param(value="id") int id)
id - identityint insert(T entity)
entity - entityint batchInsert(List<T> list)
list - list of entityint update(T entity)
entity - entityint delete(@Param(value="ids")
int[] ids)
ids - id arrayCopyright © 2022. All rights reserved.