IpCfgService调用saveCfgIndexInfo的方法改成不带last_insert_id的方法

This commit is contained in:
wangxin
2018-11-16 12:36:01 +08:00
parent c62b56019d
commit 859e96ec1e

View File

@@ -118,7 +118,7 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
batchSqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH, false);
for(int index = 0; index < cfgIndexInfos.size();index++){
CfgIndexInfo cfgIndexInfo = cfgIndexInfos.get(index);
((IpCfgDao) batchSqlSession.getMapper(IpCfgDao.class)).saveCfgIndex(cfgIndexInfo);
((IpCfgDao) batchSqlSession.getMapper(IpCfgDao.class)).saveCfgIndexForBatch(cfgIndexInfo);
}
batchSqlSession.commit();
}finally {