/**
* 批量插入数据
*/
@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 实现批量增加增加数据
猜你喜欢
转载自blog.csdn.net/u012040869/article/details/73604096
今日推荐
周排行