From 4bf5df788d741f1794368c077c41854a8ebe8fe5 Mon Sep 17 00:00:00 2001 From: wangxin Date: Fri, 4 Jan 2019 21:38:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=8B=89=E5=A7=86=E8=BE=BE?= =?UTF-8?q?=E8=A1=A8=E8=BE=BE=E5=BC=8F=E7=9A=84=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/nis/web/service/basics/AsnIpCfgService.java | 6 ++++-- src/main/resources/messages/message_ru.properties | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-) 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