提交更新返回值

master
lwj 2024-09-08 13:26:25 +08:00
parent 310ba5fd6f
commit f77f4928e3
1 changed files with 1 additions and 2 deletions

View File

@ -190,9 +190,8 @@ public class ProductServiceImpl implements ProductService {
ps.setObject(index++, obj);
log.info("类型为obj,值{}",obj);
}
ps.addBatch();
}
ps.addBatch();
// 执行批量插入操作
int[] ints = ps.executeBatch();