mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 17:18:24 +08:00
fixed executeBatch
This commit is contained in:
parent
c246887956
commit
fa75161971
@ -101,7 +101,7 @@ public class RowMapperInvoker {
|
||||
RowMapper mapper = sqlSession.getMapper(RowMapper.class);
|
||||
int counter = 0;
|
||||
int resultsPos = 0;
|
||||
for (int i = 0; i < batchSize; i++) {
|
||||
for (int i = 0; i < totalSize; i++) {
|
||||
if (++counter > batchSize) {
|
||||
counter = 0;
|
||||
List<BatchResult> batchResults = sqlSession.flushStatements();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user