IpCfgService调用saveCfgIndexInfo的方法改成不带last_insert_id的方法
This commit is contained in:
@@ -118,7 +118,7 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
|
|||||||
batchSqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH, false);
|
batchSqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH, false);
|
||||||
for(int index = 0; index < cfgIndexInfos.size();index++){
|
for(int index = 0; index < cfgIndexInfos.size();index++){
|
||||||
CfgIndexInfo cfgIndexInfo = cfgIndexInfos.get(index);
|
CfgIndexInfo cfgIndexInfo = cfgIndexInfos.get(index);
|
||||||
((IpCfgDao) batchSqlSession.getMapper(IpCfgDao.class)).saveCfgIndex(cfgIndexInfo);
|
((IpCfgDao) batchSqlSession.getMapper(IpCfgDao.class)).saveCfgIndexForBatch(cfgIndexInfo);
|
||||||
}
|
}
|
||||||
batchSqlSession.commit();
|
batchSqlSession.commit();
|
||||||
}finally {
|
}finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user