mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
fix: close https://gitee.com/mybatis-flex/mybatis-flex/issues/IALNRW close https://github.com/mybatis-flex/mybatis-flex/issues/391 close https://github.com/mybatis-flex/mybatis-flex/issues/390
This commit is contained in:
parent
fb7d13f4b9
commit
417b04838b
@ -210,7 +210,7 @@ public interface BaseMapper<T> {
|
|||||||
size = DEFAULT_BATCH_SIZE;
|
size = DEFAULT_BATCH_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
Class aClass = this.getClass();
|
Class aClass = ClassUtil.getUsefulClass(this.getClass());
|
||||||
int[] batchResults = Db.executeBatch(entities, size, aClass, (BiConsumer<BaseMapper, T>) BaseMapper::insertSelective);
|
int[] batchResults = Db.executeBatch(entities, size, aClass, (BiConsumer<BaseMapper, T>) BaseMapper::insertSelective);
|
||||||
int result = 0;
|
int result = 0;
|
||||||
for (int anInt : batchResults) {
|
for (int anInt : batchResults) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user