if (listGroup != null && listGroup.size() > 0) { int fromIndex = 0; while (true) { int toIndex = fromIndex + 100; if (toIndex > listGroup.size()) { toIndex = listGroup.size(); tpasGpsService.addTpasGps(listGroup.subList( fromIndex, toIndex)); break; } tpasGpsService.addTpasGps(listGroup.subList(fromIndex, toIndex)); fromIndex = toIndex; } }
JAVA中批量插入数据
原创
©著作权归作者所有:来自51CTO博客作者猴子也疯狂的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章