T - 实体类@RegisterMapper public interface InsertBatchMapper<T>
| Modifier and Type | Method and Description |
|---|---|
int |
insertBatch(List<T> records)
批量创建新的记录,字段的值为 null 也会插入(不会使用数据库字段的默认值)。【特别注意】目前只能使用数据库的自增主键,或者提前设置好。
|
@InsertProvider(type=InsertMapperTemplate.class, method="dynamicSql") int insertBatch(List<T> records)
records - 待保存的实体对象InsertMapperTemplate.insertBatch(app.myoss.cloud.mybatis.table.TableInfo, org.apache.ibatis.mapping.MappedStatement)Copyright © 2018–2020. All rights reserved.