/**
* 批量插入数据
*/
@Override
@SuppressWarnings("unchecked")
public void batchUpdate(final List<IrpCountdetail> lsCountdetails) {
this.getSqlMapClientTemplate().execute(new SqlMapClientCallback() {
public T doInSqlMapClient(SqlMapExecutor executor) throws SQLException {
executor.startBatch();
for (IrpCountdetail obj : lsCountdetails) {
executor.update("IRP_COUNTDETAIL.ibatorgenerated_insertSelective", obj);
}
executor.executeBatch();
return null;
}
});
}
ibatis 实现批量增加增加数据
最新推荐文章于 2021-12-28 16:39:09 发布