多删除了commit提交语句bug更改
This commit is contained in:
@@ -114,6 +114,7 @@ public class StatisticASNIpNumer {
|
|||||||
batchSqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH, true);
|
batchSqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH, true);
|
||||||
for(Entry<Integer,Map<String,Long>> e: asnNumerMap.entrySet()) {
|
for(Entry<Integer,Map<String,Long>> e: asnNumerMap.entrySet()) {
|
||||||
((AsnGroupInfoDao) batchSqlSession.getMapper(AsnGroupInfoDao.class)).updateIpNum(e.getValue().get("v4"),e.getValue().get("v6"),e.getKey());
|
((AsnGroupInfoDao) batchSqlSession.getMapper(AsnGroupInfoDao.class)).updateIpNum(e.getValue().get("v4"),e.getValue().get("v6"),e.getKey());
|
||||||
|
batchSqlSession.commit();
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
}catch (Exception e) {
|
}catch (Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user