diff --git a/src/main/java/com/nis/web/dao/configuration/AvContentCfgDao.xml b/src/main/java/com/nis/web/dao/configuration/AvContentCfgDao.xml index 8f18ded4c..e087e38f5 100644 --- a/src/main/java/com/nis/web/dao/configuration/AvContentCfgDao.xml +++ b/src/main/java/com/nis/web/dao/configuration/AvContentCfgDao.xml @@ -369,18 +369,17 @@ AND r.function_id=#{functionId,jdbcType=INTEGER} - + AND r.compile_id in (select t.compile_id from ip_port_cfg t - and t.protocol_id=4 - and t.src_ip_address =#{(ipPort.srcIpAddress,jdbcType=VARCHAR} + and t.src_ip_address =#{ipPort.srcIpAddress,jdbcType=VARCHAR} and t.src_port =#{ipPort.srcPort,jdbcType=VARCHAR} - and t.dest_ip_address =#{(ipPort.destIpAddress,jdbcType=VARCHAR} + and t.dest_ip_address =#{ipPort.destIpAddress,jdbcType=VARCHAR} and t.dest_port =#{ipPort.destPort,jdbcType=VARCHAR} @@ -388,46 +387,16 @@ ) - - - AND r.compile_id in (select f.compile_id from ntc_subscribe_id_cfg f - - - and f.cfg_keywords like concat(concat('%',#{ntcSubscribeIdCfg.cfgKeywords,jdbcType=VARCHAR}),'%') - - - and f.compile_id =#{compileId,jdbcType=INTEGER} - - - ) + + ) - - - AND r.compile_id in (select s.compile_id from av_cont_url_cfg s - - - and s.cfg_keywords like concat(concat('%',#{avContUrlCfg.cfgKeywords,jdbcType=VARCHAR}),'%') - - - and s.compile_id =#{compileId,jdbcType=INTEGER} - - - ) - - - - + ${sqlMap.dsf} diff --git a/src/main/java/com/nis/web/dao/configuration/FileTransferCfgDao.xml b/src/main/java/com/nis/web/dao/configuration/FileTransferCfgDao.xml index 21f48b1cb..b99f225bc 100644 --- a/src/main/java/com/nis/web/dao/configuration/FileTransferCfgDao.xml +++ b/src/main/java/com/nis/web/dao/configuration/FileTransferCfgDao.xml @@ -265,15 +265,15 @@ AND a.compile_id in (select t.compile_id from ip_port_cfg t - and t.protocol_id=4 + and t.protocol_id=7 - and t.src_ip_address =#{(ipPort.srcIpAddress,jdbcType=VARCHAR} + and t.src_ip_address =#{ipPort.srcIpAddress,jdbcType=VARCHAR} and t.src_port =#{ipPort.srcPort,jdbcType=VARCHAR} - and t.dest_ip_address =#{(ipPort.destIpAddress,jdbcType=VARCHAR} + and t.dest_ip_address =#{ipPort.destIpAddress,jdbcType=VARCHAR} and t.dest_port =#{ipPort.destPort,jdbcType=VARCHAR} @@ -281,6 +281,11 @@ ) + + AND a.compile_id in (SELECT d.compile_id FROM ftp_keyword_cfg d WHERE + d.cfg_keywords LIKE concat(concat('%',#{searchKeywords,jdbcType=VARCHAR}),'%') + ) + AND a.compile_id in (select f.compile_id from ntc_subscribe_id_cfg f @@ -293,16 +298,6 @@ ) - ${sqlMap.dsf} @@ -691,15 +686,14 @@ AND a.compile_id in (select t.compile_id from ip_port_cfg t - and t.protocol_id=4 - and t.src_ip_address =#{(ipPort.srcIpAddress,jdbcType=VARCHAR} + and t.src_ip_address =#{ipPort.srcIpAddress,jdbcType=VARCHAR} and t.src_port =#{ipPort.srcPort,jdbcType=VARCHAR} - and t.dest_ip_address =#{(ipPort.destIpAddress,jdbcType=VARCHAR} + and t.dest_ip_address =#{ipPort.destIpAddress,jdbcType=VARCHAR} and t.dest_port =#{ipPort.destPort,jdbcType=VARCHAR} @@ -708,27 +702,25 @@ ) - AND a.compile_id in (select f.compile_id from p2p_hash_cfg h + AND a.compile_id in (select h.compile_id from p2p_hash_cfg h - and h.cfg_keywords like concat(concat('%',#{p2pHash.cfgKeywords,jdbcType=VARCHAR}),'%') + REPLACE(h.cfg_keywords,'***and***','|') like concat(concat('%',#{p2pHash.cfgKeywords,jdbcType=VARCHAR}),'%') - - + ) - AND a.compile_id in (select f.compile_id from p2p_keyword_cfg k + AND a.compile_id in (select k.compile_id from p2p_keyword_cfg k - and k.cfg_keywords like concat(concat('%',#{p2pKeyword.cfgKeywords,jdbcType=VARCHAR}),'%') + REPLACE(k.cfg_keywords,'***and***','|') like concat(concat('%',#{p2pKeyword.cfgKeywords,jdbcType=VARCHAR}),'%') - - + ) - AND a.compile_id in (select f.compile_id from ntc_subscribe_id_cfg s + AND a.compile_id in (select s.compile_id from ntc_subscribe_id_cfg s and s.cfg_keywords like concat(concat('%',#{ntcSubscribeIdCfg.cfgKeywords,jdbcType=VARCHAR}),'%') diff --git a/src/main/java/com/nis/web/dao/configuration/MailCfgDao.xml b/src/main/java/com/nis/web/dao/configuration/MailCfgDao.xml index 81fc279b7..7ded599de 100644 --- a/src/main/java/com/nis/web/dao/configuration/MailCfgDao.xml +++ b/src/main/java/com/nis/web/dao/configuration/MailCfgDao.xml @@ -216,15 +216,15 @@ AND a.compile_id in (select t.compile_id from ip_port_cfg t - and t.protocol_id=4 + and t.protocol_id=5 - and t.src_ip_address =#{(ipPort.srcIpAddress,jdbcType=VARCHAR} + and t.src_ip_address =#{ipPort.srcIpAddress,jdbcType=VARCHAR} and t.src_port =#{ipPort.srcPort,jdbcType=VARCHAR} - and t.dest_ip_address =#{(ipPort.destIpAddress,jdbcType=VARCHAR} + and t.dest_ip_address =#{ipPort.destIpAddress,jdbcType=VARCHAR} and t.dest_port =#{ipPort.destPort,jdbcType=VARCHAR} @@ -232,16 +232,11 @@ ) - + + AND a.compile_id in (SELECT m.compile_id FROM mail_keyword_cfg m WHERE + REPLACE(m.cfg_keywords,'***and***','|') LIKE concat(concat('%',#{searchKeywords,jdbcType=VARCHAR}),'%') + ) + ${sqlMap.dsf} diff --git a/src/main/resources/messages/message_zh_CN.properties b/src/main/resources/messages/message_zh_CN.properties index 47bd8b679..cd467a9fb 100644 --- a/src/main/resources/messages/message_zh_CN.properties +++ b/src/main/resources/messages/message_zh_CN.properties @@ -1311,4 +1311,6 @@ ethernet=\u4EE5\u592A\u7F51 http_req_body_keywords=\u8BF7\u6C42\u5185\u5BB9\u5173\u952E\u5B57 http_res_body_keywords=\u5E94\u7B54\u5185\u5BB9\u5173\u952E\u5B57 http_req_hdr_keywords=\u8BF7\u6C42\u5934\u57DF\u5173\u952E\u5B57 -http_res_hdr_keywords=\u5E94\u7B54\u5934\u57DF\u5173\u952E\u5B57 \ No newline at end of file +http_res_hdr_keywords=\u5E94\u7B54\u5934\u57DF\u5173\u952E\u5B57 +p2p_eMule_keywords=eMule\u641C\u7D22\u5173\u952E\u5B57 +p2p_hash_keywords=\u6587\u4EF6\u6807\u8BC6\u5173\u952E\u5B57 \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/cfg/av/contUrl/contUrlList.jsp b/src/main/webapp/WEB-INF/views/cfg/av/contUrl/contUrlList.jsp index 07dd033a1..81c643529 100644 --- a/src/main/webapp/WEB-INF/views/cfg/av/contUrl/contUrlList.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/av/contUrl/contUrlList.jsp @@ -22,16 +22,12 @@ //搜索框提示语初始化 if("${cfg.cfgDesc}"){ $("#intype").val("${cfg.cfgDesc}"); - }else if("${cfg.voipIp.srcIpAddress}"){ - $("#intype").val("${cfg.voipIp.srcIpAddress}"); - }else if("${cfg.voipAccount.cfgKeywords}"){ - $("#intype").val("${cfg.voipAccount.cfgKeywords}"); }else if("${cfg.compileId}"){ $("#intype").val("${cfg.compileId}"); - }else if("${cfg.voipIp.srcPort}"){ - $("#intype").val("${cfg.voipIp.srcPort}"); - }else if("${cfg.ntcSubscribeIdCfg.cfgKeywords}"){ - $("#intype").val("${cfg.ntcSubscribeIdCfg.cfgKeywords}"); + }else if("${cfg.ipPort.srcIpAddress}"){ + $("#intype").val("${cfg.ipPort.srcIpAddress}"); + }else if("${cfg.ipPort.destIpAddress}"){ + $("#intype").val("${cfg.ipPort.destIpAddress}"); }else{ $("#intype").attr("placeholder"," "+$("#seltype").find("option:selected").text()); } @@ -171,10 +167,10 @@ - <%-- - --%> + + + <%-- --%> - diff --git a/src/main/webapp/WEB-INF/views/cfg/av/voip/voipList.jsp b/src/main/webapp/WEB-INF/views/cfg/av/voip/voipList.jsp index f0630c828..a9a08e8ea 100644 --- a/src/main/webapp/WEB-INF/views/cfg/av/voip/voipList.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/av/voip/voipList.jsp @@ -22,16 +22,14 @@ //搜索框提示语初始化 if("${cfg.cfgDesc}"){ $("#intype").val("${cfg.cfgDesc}"); - }else if("${cfg.voipIp.srcIpAddress}"){ - $("#intype").val("${cfg.voipIp.srcIpAddress}"); - }else if("${cfg.voipAccount.cfgKeywords}"){ - $("#intype").val("${cfg.voipAccount.cfgKeywords}"); }else if("${cfg.compileId}"){ $("#intype").val("${cfg.compileId}"); - }else if("${cfg.voipIp.srcPort}"){ - $("#intype").val("${cfg.voipIp.srcPort}"); - }else if("${cfg.ntcSubscribeIdCfg.cfgKeywords}"){ - $("#intype").val("${cfg.ntcSubscribeIdCfg.cfgKeywords}"); + }else if("${cfg.ipPort.srcIpAddress}"){ + $("#intype").val("${cfg.ipPort.srcIpAddress}"); + }else if("${cfg.ipPort.destIpAddress}"){ + $("#intype").val("${cfg.ipPort.destIpAddress}"); + }else if("${cfg.voipAccount.cfgKeywords}"){ + $("#intype").val("${cfg.voipAccount.cfgKeywords}"); }else{ $("#intype").attr("placeholder"," "+$("#seltype").find("option:selected").text()); } @@ -171,8 +169,9 @@ - <%-- - --> --%> + + + <%----%> diff --git a/src/main/webapp/WEB-INF/views/cfg/fileTransfer/ftpList.jsp b/src/main/webapp/WEB-INF/views/cfg/fileTransfer/ftpList.jsp index 30fd8c400..37b0a96ee 100644 --- a/src/main/webapp/WEB-INF/views/cfg/fileTransfer/ftpList.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/fileTransfer/ftpList.jsp @@ -10,10 +10,14 @@ //搜索框提示语初始化 if("${cfg.cfgDesc}"){ $("#intype").val("${cfg.cfgDesc}"); - }else if("${cfg.ntcSubscribeIdCfg.cfgKeywords}"){ - $("#intype").val("${cfg.ntcSubscribeIdCfg.cfgKeywords}"); }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.searchKeywords}"){ + $("#intype").val("${cfg.searchKeywords}"); }else{ $("#intype").attr("placeholder"," "+$("#seltype").find("option:selected").text()); } @@ -139,11 +143,10 @@ - - <%-- - - - --%> + + + + <%-- --%> diff --git a/src/main/webapp/WEB-INF/views/cfg/fileTransfer/p2pList.jsp b/src/main/webapp/WEB-INF/views/cfg/fileTransfer/p2pList.jsp index 812de1515..1390d67d3 100644 --- a/src/main/webapp/WEB-INF/views/cfg/fileTransfer/p2pList.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/fileTransfer/p2pList.jsp @@ -11,6 +11,14 @@ $("#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.p2pHash.cfgKeywords}"){ + $("#intype").val("${cfg.p2pHash.cfgKeywords}"); + }else if("${cfg.p2pKeyword.cfgKeywords}"){ + $("#intype").val("${cfg.p2pKeyword.cfgKeywords}"); }else{ $("#intype").attr("placeholder"," "+$("#seltype").find("option:selected").text()); } @@ -149,6 +157,10 @@ + + + + diff --git a/src/main/webapp/WEB-INF/views/cfg/mail/mailList.jsp b/src/main/webapp/WEB-INF/views/cfg/mail/mailList.jsp index 2ea07ff7a..295494a08 100644 --- a/src/main/webapp/WEB-INF/views/cfg/mail/mailList.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/mail/mailList.jsp @@ -12,6 +12,12 @@ $("#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.searchKeywords}"){ + $("#intype").val("${cfg.searchKeywords}"); }else{ $("#intype").attr("placeholder"," "+$("#seltype").find("option:selected").text()); } @@ -149,11 +155,12 @@ - - <%-- - - - --%> + + + + + +