| 限定符和类型 | 方法和说明 |
|---|---|
default int |
deleteById(K id)
通过主键删除记录
|
default int |
deleteByIds(List<K> ids)
通过主键批量删除记录
|
default T |
getById(K id)
通过主键获取
|
default List<T> |
getByIds(List<K> ids)
通过主键批量获取
|
default int |
updateById(T po)
通过主键更新
|
default int |
updateByIds(T po,
List<K> ids)
通过主键批量更新
|
default int |
updateByIdsWithColumns(T po,
List<Column> columns,
List<K> ids)
通过主键批量更新指定列
|
default int |
updateByIdWithColumns(T po,
List<Column> columns)
通过主键更新指定的列
|
createCount, createDelete, createInsert, createQuery, createUpdate, getDefaultTable, getPoClazz, rawCount, rawInsert, rawInsertWithGenerateKeys, rawSelect, rawSelectDefault, rawSelectOne, rawUpdatedefault int deleteById(K id)
id - 主键default int updateById(T po)
po - 更新对象default int updateByIdWithColumns(T po, List<Column> columns)
po - 更新对象columns - 更新列default int updateByIdsWithColumns(T po, List<Column> columns, List<K> ids)
po - 更新对象columns - 更新列ids - 主键列表Copyright © 2020 IBIT程序猿. All rights reserved.