diff --git a/src/main/java/com/nis/web/service/basics/AsnIpCfgService.java b/src/main/java/com/nis/web/service/basics/AsnIpCfgService.java index 10d9ec8e2..117f5263d 100644 --- a/src/main/java/com/nis/web/service/basics/AsnIpCfgService.java +++ b/src/main/java/com/nis/web/service/basics/AsnIpCfgService.java @@ -444,7 +444,8 @@ public class AsnIpCfgService extends CrudService, AsnIpCfg> { SqlSessionFactory sqlSessionFactory=SpringContextHolder.getBean(SqlSessionFactory.class); final SqlSession batchSqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH, false); try{ - data.entrySet().stream().forEach( enrty->{ + for(Entry> enrty:data.entrySet()) { + //data.entrySet().stream().forEach( enrty->{ Long asn=enrty.getKey();//ans group 的group id List asnIpCfgs=enrty.getValue(); for(int index = 0; index < asnIpCfgs.size();index++){ @@ -548,7 +549,8 @@ public class AsnIpCfgService extends CrudService, AsnIpCfg> { }else { throw new RuntimeException("isValid value is "+isValid); } - }); + //}); + } }finally { if(batchSqlSession != null){ batchSqlSession.close(); diff --git a/src/main/resources/messages/message_ru.properties b/src/main/resources/messages/message_ru.properties index 1323cfb06..fac54d252 100644 --- a/src/main/resources/messages/message_ru.properties +++ b/src/main/resources/messages/message_ru.properties @@ -1449,3 +1449,10 @@ hex_minlength_8=Please enter a hexadecimal string of length 8 hex_minlength_16=Please enter a hexadecimal string of length 16 need_input=Attributes need to be filled in max_input=Fill in at most four +no_need_input=Attributes no need to be filled in +close_link=Close Link +asn_group=ASN Group +can_not_edit_issued_ans_group=Can not edit valid ASN group +can_not_delete_asn_group_with_audited_ip=Can not delete ASN group with approved IP +organization=Organization +mismatch=Mismatch \ No newline at end of file