diff --git a/src/main/java/com/nis/web/dao/configuration/WebsiteCfgDao.xml b/src/main/java/com/nis/web/dao/configuration/WebsiteCfgDao.xml index 4f138b2ff..83a248837 100644 --- a/src/main/java/com/nis/web/dao/configuration/WebsiteCfgDao.xml +++ b/src/main/java/com/nis/web/dao/configuration/WebsiteCfgDao.xml @@ -282,9 +282,9 @@ AND a.compile_id in (select f.compile_id from http_body_cfg f - and cfg_type='NTC_HTTP_REQ_BODY' + AND f.cfg_type = #{httpReqBody.cfgType} - and REPLACE(f.cfg_keywords,'***and***','|') like concat(concat('%',#{httpReqBody.cfgKeywords,jdbcType=VARCHAR}),'%') + AND REPLACE(f.cfg_keywords,'***and***','|') like concat(concat('%',#{httpReqBody.cfgKeywords,jdbcType=VARCHAR}),'%') @@ -293,9 +293,9 @@ AND a.compile_id in (select f.compile_id from http_body_cfg f - and cfg_type='NTC_HTTP_RES_BODY' + AND f.cfg_type = #{httpResBody.cfgType} - and REPLACE(f.cfg_keywords,'***and***','|') like concat(concat('%',#{httpResBody.cfgKeywords,jdbcType=VARCHAR}),'%') + AND REPLACE(f.cfg_keywords,'***and***','|') like concat(concat('%',#{httpResBody.cfgKeywords,jdbcType=VARCHAR}),'%') @@ -304,8 +304,9 @@ AND a.compile_id in (select f.compile_id from http_req_head_cfg f + AND f.cfg_type = #{httpReqHdr.cfgType} - REPLACE(f.cfg_keywords,'***and***','|') like concat(concat('%',#{httpReqHdr.cfgKeywords,jdbcType=VARCHAR}),'%') + AND REPLACE(f.cfg_keywords,'***and***','|') like concat(concat('%',#{httpReqHdr.cfgKeywords,jdbcType=VARCHAR}),'%') ) @@ -313,8 +314,9 @@ AND a.compile_id in (select f.compile_id from http_res_head_cfg f + AND f.cfg_type = #{httpResHdr.cfgType} - REPLACE(f.cfg_keywords,'***and***','|') like concat(concat('%',#{httpResHdr.cfgKeywords,jdbcType=VARCHAR}),'%') + AND REPLACE(f.cfg_keywords,'***and***','|') like concat(concat('%',#{httpResHdr.cfgKeywords,jdbcType=VARCHAR}),'%') ) diff --git a/src/main/java/com/nis/web/service/configuration/HttpRedirectCfgService.java b/src/main/java/com/nis/web/service/configuration/HttpRedirectCfgService.java index 39d73f77c..121f6edd7 100644 --- a/src/main/java/com/nis/web/service/configuration/HttpRedirectCfgService.java +++ b/src/main/java/com/nis/web/service/configuration/HttpRedirectCfgService.java @@ -100,6 +100,19 @@ public class HttpRedirectCfgService extends CrudService list = websiteCfgDao.getWebsiteList(entity); page.setList(list); return page; diff --git a/src/main/java/com/nis/web/service/configuration/WebsiteCfgService.java b/src/main/java/com/nis/web/service/configuration/WebsiteCfgService.java index 5a8eb15ea..1d54598ae 100644 --- a/src/main/java/com/nis/web/service/configuration/WebsiteCfgService.java +++ b/src/main/java/com/nis/web/service/configuration/WebsiteCfgService.java @@ -161,6 +161,19 @@ public class WebsiteCfgService extends CrudService { // 生成数据权限过滤条件(dsf为dataScopeFilter的简写,在xml中使用 ${sqlMap.dsf}调用权限SQL) entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"a")); entity.setPage(page); + // 设置cfg_type,用于列表检索时区分 + if(entity.getHttpReqHdr() != null){ + entity.getHttpReqHdr().setCfgType(Constants.HTTP_REQ_HEAD_REGION); + } + if(entity.getHttpReqBody() != null){ + entity.getHttpReqBody().setCfgType(Constants.HTTP_REQ_BODY_REGION); + } + if(entity.getHttpResHdr() != null){ + entity.getHttpResHdr().setCfgType(Constants.HTTP_RES_HEAD_REGION); + } + if(entity.getHttpResBody() != null){ + entity.getHttpResBody().setCfgType(Constants.HTTP_RES_BODY_REGION); + } List list = websiteCfgDao.getWebsiteList(entity); page.setList(list); return page; diff --git a/src/main/resources/messages/message_en.properties b/src/main/resources/messages/message_en.properties index 5e9e3ab5a..bb98eb858 100644 --- a/src/main/resources/messages/message_en.properties +++ b/src/main/resources/messages/message_en.properties @@ -1324,4 +1324,6 @@ http_req_hdr_keywords=Request Header Keyword http_res_hdr_keywords=Response Header Keyword traffic_user_behavior=Traffic Account Behavior user_behavior_data=Account statistics -ip_behavior_data=IP statistics \ No newline at end of file +ip_behavior_data=IP statistics +p2p_eMule_keywords=eMule Search Keywords +p2p_hash_keywords=File Marking Keywords \ No newline at end of file diff --git a/src/main/resources/messages/message_ru.properties b/src/main/resources/messages/message_ru.properties index db607b3a7..a59cb1f71 100644 --- a/src/main/resources/messages/message_ru.properties +++ b/src/main/resources/messages/message_ru.properties @@ -1313,4 +1313,6 @@ http_req_hdr_keywords=Request Header Keyword http_res_hdr_keywords=Response Header Keyword traffic_user_behavior=Traffic Account Behavior user_behavior_data=Account statistics -ip_behavior_data=IP statistics \ No newline at end of file +ip_behavior_data=IP statistics +p2p_eMule_keywords=eMule Search Keywords +p2p_hash_keywords=File Marking Keywords \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/cfg/intercept/interceptList.jsp b/src/main/webapp/WEB-INF/views/cfg/intercept/interceptList.jsp index bdbd46d63..47e1b96cd 100644 --- a/src/main/webapp/WEB-INF/views/cfg/intercept/interceptList.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/intercept/interceptList.jsp @@ -163,12 +163,11 @@ - <%-- - - --%> - + + + diff --git a/src/main/webapp/WEB-INF/views/cfg/proxy/control/httpRedirectList.jsp b/src/main/webapp/WEB-INF/views/cfg/proxy/control/httpRedirectList.jsp index 86c6370cb..40ac79e4e 100644 --- a/src/main/webapp/WEB-INF/views/cfg/proxy/control/httpRedirectList.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/proxy/control/httpRedirectList.jsp @@ -11,6 +11,18 @@ $("#intype").val("${cfg.cfgDesc}"); }else if("${cfg.compileId}"){ $("#intype").val("${cfg.compileId}"); + }else if("${cfg.ipPort.srcIpAddress}"){ + $("#intype").val("${cfg.ipPort.srcIpAddress}"); + }else if("${cfg.ipPort.destIpAddress}"){ + $("#intype").val("${cfg.ipPort.destIpAddress}"); + }else if("${cfg.httpReqHdr.cfgKeywords}"){ + $("#intype").val("${cfg.httpReqHdr.cfgKeywords}"); + }else if("${cfg.httpResHdr.cfgKeywords}"){ + $("#intype").val("${cfg.httpResHdr.cfgKeywords}"); + }else if("${cfg.httpReqBody.cfgKeywords}"){ + $("#intype").val("${cfg.httpReqBody.cfgKeywords}"); + }else if("${cfg.httpResBody.cfgKeywords}"){ + $("#intype").val("${cfg.httpResBody.cfgKeywords}"); }else{ $("#intype").attr("placeholder"," "+$("#seltype").find("option:selected").text()); } @@ -319,10 +331,18 @@ - <%-- - - - --%> + + + + + + + + + + + + diff --git a/src/main/webapp/WEB-INF/views/cfg/website/httpList.jsp b/src/main/webapp/WEB-INF/views/cfg/website/httpList.jsp index 76928c6a2..5df0ad98a 100644 --- a/src/main/webapp/WEB-INF/views/cfg/website/httpList.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/website/httpList.jsp @@ -306,13 +306,15 @@ - + - + + +