summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/nis/web/task/StatisticASNIpNumer.java1
1 files changed, 1 insertions, 0 deletions
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<Integer,Map<String,Long>> 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) {