public interface BatchInsertMapper<T>
| 限定符和类型 | 方法和说明 |
|---|---|
int |
insertListIgnoreConflict(List<T> recordList)
批量插入,忽略插入异常;
支持批量插入的数据库可以使用,例如MySQL,H2等,另外该接口限制实体包含`id`属性并且必须为自增列
|
int |
insertSelectiveListIgnoreConflict(BatchInsertModel<T> batchInsertModel) |
@Options(useGeneratedKeys=true,
keyProperty="id")
@InsertProvider(type=BatchInsertProvider.class,
method="dynamicSQL")
int insertListIgnoreConflict(List<T> recordList)
recordList - @Options(useGeneratedKeys=true,
keyProperty="id")
@InsertProvider(type=BatchInsertProvider.class,
method="dynamicSQL")
int insertSelectiveListIgnoreConflict(BatchInsertModel<T> batchInsertModel)
Copyright © 2020. All rights reserved.