diff --git a/src/main/java/com/nis/web/task/StatisticASNIpNumer.java b/src/main/java/com/nis/web/task/StatisticASNIpNumer.java index 7b5a534d7..5f712dfa6 100644 --- a/src/main/java/com/nis/web/task/StatisticASNIpNumer.java +++ b/src/main/java/com/nis/web/task/StatisticASNIpNumer.java @@ -114,6 +114,7 @@ public class StatisticASNIpNumer { batchSqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH, true); for(Entry> e: asnNumerMap.entrySet()) { ((AsnGroupInfoDao) batchSqlSession.getMapper(AsnGroupInfoDao.class)).updateIpNum(e.getValue().get("v4"),e.getValue().get("v6"),e.getKey()); + batchSqlSession.commit(); index++; } }catch (Exception e) {