From 85e813a5d722a783742d490bc634bf946259ceed Mon Sep 17 00:00:00 2001 From: zhangwenqing Date: Fri, 24 Aug 2018 12:15:19 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=A7=A3=E5=86=B3APP=E7=AD=96=E7=95=A5Subscr?= =?UTF-8?q?ibeId=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98=202.APP=E7=89=B9?= =?UTF-8?q?=E5=BE=81dolog=E4=B8=BA0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nis/domain/configuration/AppPolicyCfg.java | 6 +++--- .../ntc/FileTransferCfgController.java | 1 + .../service/configuration/AppCfgService.java | 4 ++-- .../WEB-INF/views/cfg/app/appByteCfgForm.jsp | 17 ++++------------- .../WEB-INF/views/cfg/app/appDomainCfgForm.jsp | 17 ++++------------- .../WEB-INF/views/cfg/app/appHeaderCfgForm.jsp | 17 ++++------------- .../WEB-INF/views/cfg/app/appHttpCfgForm.jsp | 17 ++++------------- .../WEB-INF/views/cfg/app/appIpCfgForm.jsp | 17 ++++------------- .../WEB-INF/views/cfg/app/appPolicyCfgForm.jsp | 9 +++------ .../WEB-INF/views/cfg/app/appSslCfgForm.jsp | 9 ++++++--- 10 files changed, 35 insertions(+), 79 deletions(-) diff --git a/src/main/java/com/nis/domain/configuration/AppPolicyCfg.java b/src/main/java/com/nis/domain/configuration/AppPolicyCfg.java index da27c0bfe..bc6895c44 100644 --- a/src/main/java/com/nis/domain/configuration/AppPolicyCfg.java +++ b/src/main/java/com/nis/domain/configuration/AppPolicyCfg.java @@ -69,17 +69,17 @@ public class AppPolicyCfg extends BaseCfg { @Expose @ExcelField(title="expression_type") @SerializedName("exprType") - private Integer exprType ; + protected Integer exprType ; @Expose @ExcelField(title="match_method") @SerializedName("matchMethod") - private Integer matchMethod ; + protected Integer matchMethod ; @Expose @ExcelField(title="whether_hexbinary") @SerializedName("isHexbin") - private Integer isHexbin; + protected Integer isHexbin; private List ipPortList; private IpPortCfg ipPort; diff --git a/src/main/java/com/nis/web/controller/configuration/ntc/FileTransferCfgController.java b/src/main/java/com/nis/web/controller/configuration/ntc/FileTransferCfgController.java index 0f116ffde..42e621c49 100644 --- a/src/main/java/com/nis/web/controller/configuration/ntc/FileTransferCfgController.java +++ b/src/main/java/com/nis/web/controller/configuration/ntc/FileTransferCfgController.java @@ -246,6 +246,7 @@ public class FileTransferCfgController extends BaseController{ fileMap.put("checksum", md5); result = ConfigServiceUtil.getFileDigest(null, uploadFile, JsonMapper.toJsonString(fileMap)); if((result.getData().getRawLen() == null) || (result.getData().getDigest() == null)) { + logger.info("文件摘要信息获取有误!"); throw new MaatConvertException(":"+null); } logger.info("获取文件摘要响应信息:"+result); diff --git a/src/main/java/com/nis/web/service/configuration/AppCfgService.java b/src/main/java/com/nis/web/service/configuration/AppCfgService.java index 855a73635..0388674ea 100644 --- a/src/main/java/com/nis/web/service/configuration/AppCfgService.java +++ b/src/main/java/com/nis/web/service/configuration/AppCfgService.java @@ -238,7 +238,7 @@ public class AppCfgService extends BaseService { for(NtcSubscribeIdCfg cfg:entity.getNtcSubscribeIdCfgList()){ if(StringUtils.isNotBlank(cfg.getCfgKeywords())){ entity.setCfgKeywords(cfg.getCfgKeywords()); - BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"}); + BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType","exprType","matchMethod","isHexbin"}); stringcfgDao.saveSubscribeIdCfg(cfg); } } @@ -1410,7 +1410,7 @@ public class AppCfgService extends BaseService { if(entity.getNtcSubscribeIdCfgList()!=null&&entity.getNtcSubscribeIdCfgList().size()>0){ NtcSubscribeIdCfg ntcSubscribeIdCfg = new NtcSubscribeIdCfg(); BeanUtils.copyProperties(entity, ntcSubscribeIdCfg, new String[]{"cfgId"}); - stringcfgDao.deleteSubscribeIdCfg(ntcSubscribeIdCfg); + stringcfgDao.updateSubscribeIdCfg(ntcSubscribeIdCfg); } //保存区域IP信息 if(entity.getAreaCfg()!=null && entity.getAreaCfg().size()>0){ diff --git a/src/main/webapp/WEB-INF/views/cfg/app/appByteCfgForm.jsp b/src/main/webapp/WEB-INF/views/cfg/app/appByteCfgForm.jsp index c821be4ff..facf44d90 100644 --- a/src/main/webapp/WEB-INF/views/cfg/app/appByteCfgForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/app/appByteCfgForm.jsp @@ -142,22 +142,13 @@ $(function(){
-
+ diff --git a/src/main/webapp/WEB-INF/views/cfg/app/appDomainCfgForm.jsp b/src/main/webapp/WEB-INF/views/cfg/app/appDomainCfgForm.jsp index 77cd82995..9b8659eb9 100644 --- a/src/main/webapp/WEB-INF/views/cfg/app/appDomainCfgForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/app/appDomainCfgForm.jsp @@ -142,22 +142,13 @@ $(function(){
-
+ diff --git a/src/main/webapp/WEB-INF/views/cfg/app/appHeaderCfgForm.jsp b/src/main/webapp/WEB-INF/views/cfg/app/appHeaderCfgForm.jsp index 3eea1c739..c9c845482 100644 --- a/src/main/webapp/WEB-INF/views/cfg/app/appHeaderCfgForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/app/appHeaderCfgForm.jsp @@ -171,22 +171,13 @@ $(function(){
-
+ diff --git a/src/main/webapp/WEB-INF/views/cfg/app/appHttpCfgForm.jsp b/src/main/webapp/WEB-INF/views/cfg/app/appHttpCfgForm.jsp index 95ec2f585..fc3a2a519 100644 --- a/src/main/webapp/WEB-INF/views/cfg/app/appHttpCfgForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/app/appHttpCfgForm.jsp @@ -170,22 +170,13 @@ $(function(){
-
+ diff --git a/src/main/webapp/WEB-INF/views/cfg/app/appIpCfgForm.jsp b/src/main/webapp/WEB-INF/views/cfg/app/appIpCfgForm.jsp index a57657c74..7f981a974 100644 --- a/src/main/webapp/WEB-INF/views/cfg/app/appIpCfgForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/app/appIpCfgForm.jsp @@ -185,23 +185,14 @@ $(function(){
-
+