From 14c02a80ee716d4a3b90b2a86153af64ed9a966f Mon Sep 17 00:00:00 2001 From: zhangwenqing Date: Thu, 13 Sep 2018 16:46:56 +0800 Subject: [PATCH 1/4] =?UTF-8?q?1.=E6=97=A5=E5=BF=97=E6=80=BB=E9=87=8F?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=97=A5=E5=BF=97=E4=BF=AE=E6=94=B9=20=202.?= =?UTF-8?q?=E6=8F=90=E4=BA=A4p2p=E7=9B=91=E6=B5=8Bsql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/nis/domain/log/BaseLogEntity.java | 37 +++++++++---------- .../nis/web/controller/BaseController.java | 8 ++-- .../configuration/LogSearchController.java | 7 ++-- .../resources/sql/add_function_service.sql | 7 +++- .../views/log/manipulation/dkBehaviorList.jsp | 1 + .../webapp/WEB-INF/views/log/ntc/appList.jsp | 1 + .../webapp/WEB-INF/views/log/ntc/bgpList.jsp | 1 + .../webapp/WEB-INF/views/log/ntc/ddosList.jsp | 1 + .../webapp/WEB-INF/views/log/ntc/dnsList.jsp | 1 + .../webapp/WEB-INF/views/log/ntc/ftpList.jsp | 1 + .../webapp/WEB-INF/views/log/ntc/httpList.jsp | 1 + .../webapp/WEB-INF/views/log/ntc/ipList.jsp | 1 + .../WEB-INF/views/log/ntc/ipsecList.jsp | 1 + .../WEB-INF/views/log/ntc/l2tpLogList.jsp | 1 + .../webapp/WEB-INF/views/log/ntc/mailList.jsp | 1 + .../WEB-INF/views/log/ntc/mmAvIpList.jsp | 1 + .../WEB-INF/views/log/ntc/mmAvUrlList.jsp | 1 + .../WEB-INF/views/log/ntc/mmPicIpList.jsp | 1 + .../WEB-INF/views/log/ntc/mmPicUrlList.jsp | 1 + .../views/log/ntc/mmPornAudioSampleList.jsp | 1 + .../views/log/ntc/mmPornVideoSampleList.jsp | 1 + .../views/log/ntc/mmSampleAudioList.jsp | 1 + .../WEB-INF/views/log/ntc/mmSamplePicList.jsp | 1 + .../views/log/ntc/mmSampleVideoList.jsp | 1 + .../views/log/ntc/mmSampleVoipList.jsp | 1 + .../views/log/ntc/mmVoipAccountList.jsp | 1 + .../WEB-INF/views/log/ntc/mmVoipIpList.jsp | 1 + .../WEB-INF/views/log/ntc/openVpnList.jsp | 1 + .../webapp/WEB-INF/views/log/ntc/p2pList.jsp | 1 + .../WEB-INF/views/log/ntc/pptpLogList.jsp | 1 + .../webapp/WEB-INF/views/log/ntc/sshList.jsp | 1 + .../WEB-INF/views/log/ntc/sslLogList.jsp | 1 + .../WEB-INF/views/log/pxy/pxyHttpList.jsp | 1 + .../webapp/static/global/scripts/common.js | 9 ++--- .../webapp/static/pages/scripts/pageLogs.js | 4 +- 35 files changed, 67 insertions(+), 34 deletions(-) diff --git a/src/main/java/com/nis/domain/log/BaseLogEntity.java b/src/main/java/com/nis/domain/log/BaseLogEntity.java index c5343d236..a9e605b96 100644 --- a/src/main/java/com/nis/domain/log/BaseLogEntity.java +++ b/src/main/java/com/nis/domain/log/BaseLogEntity.java @@ -40,6 +40,8 @@ public class BaseLogEntity extends BaseEntity { protected String searchFoundStartTime;//开始时间,格式为yyyy-mm-dd hh24:mi:ss protected String searchFoundEndTime;//结束时间,格式同上 + protected String isLogTotalSearch;//由配置列表点击日志总量进行查询的标识 + public String getFoundTime() { return foundTime; } @@ -220,27 +222,24 @@ public class BaseLogEntity extends BaseEntity { public void setDate(String date) { this.date = date; } + public String getIsLogTotalSearch() { + return isLogTotalSearch; + } + public void setIsLogTotalSearch(String isLogTotalSearch) { + this.isLogTotalSearch = isLogTotalSearch; + } @Override public String toString() { - return "{\"cfgId\"=\"" + cfgId + "\", \"foundTime\"=\"" + foundTime - + "\", \"recvTime\"=\"" + recvTime + "\", \"transProto\"=\"" - + transProto + "\", \"addrType\"=\"" + addrType - + "\", \"dIp\"=\"" + dIp + "\", \"sIp\"=\"" + sIp - + "\", \"dPort\"=\"" + dPort + "\", \"sPort\"=\"" + sPort - + "\", \"service\"=\"" + service + "\", \"entranceId\"=\"" - + entranceId + "\", \"deviceId\"=\"" + deviceId - + "\", \"direction\"=\"" + direction + "\", \"streamDir\"=\"" - + streamDir + "\", \"capIp\"=\"" + capIp - + "\", \"addrList\"=\"" + addrList + "\", \"serverLocate\"=\"" - + serverLocate + "\", \"clientLocate\"=\"" + clientLocate - + "\", \"userRegion\"=\"" + userRegion + "\", \"sAsn\"=\"" - + sAsn + "\", \"dAsn\"=\"" + dAsn + "\", \"sSubscribeId\"=\"" - + sSubscribeId + "\", \"dSubscribeId\"=\"" + dSubscribeId - + "\", \"sceneFile\"=\"" + sceneFile + "\", \"functionId\"=\"" - + functionId + "\", \"action\"=\"" + action - + "\", \"seltype\"=\"" + seltype - + "\", \"searchFoundStartTime\"=\"" + searchFoundStartTime - + "\", \"searchFoundEndTime\"=\"" + searchFoundEndTime + "}"; + return "BaseLogEntity [cfgId=" + cfgId + ", foundTime=" + foundTime + ", recvTime=" + recvTime + ", transProto=" + + transProto + ", addrType=" + addrType + ", dIp=" + dIp + ", sIp=" + sIp + ", dPort=" + dPort + + ", sPort=" + sPort + ", service=" + service + ", entranceId=" + entranceId + ", deviceId=" + deviceId + + ", direction=" + direction + ", streamDir=" + streamDir + ", capIp=" + capIp + ", addrList=" + + addrList + ", serverLocate=" + serverLocate + ", clientLocate=" + clientLocate + ", userRegion=" + + userRegion + ", sAsn=" + sAsn + ", dAsn=" + dAsn + ", sSubscribeId=" + sSubscribeId + + ", dSubscribeId=" + dSubscribeId + ", sceneFile=" + sceneFile + ", functionId=" + functionId + + ", action=" + action + ", date=" + date + ", seltype=" + seltype + ", searchFoundStartTime=" + + searchFoundStartTime + ", searchFoundEndTime=" + searchFoundEndTime + ", isLogTotalSearch=" + + isLogTotalSearch + "]"; } diff --git a/src/main/java/com/nis/web/controller/BaseController.java b/src/main/java/com/nis/web/controller/BaseController.java index 537c83f8a..a3048bd29 100644 --- a/src/main/java/com/nis/web/controller/BaseController.java +++ b/src/main/java/com/nis/web/controller/BaseController.java @@ -674,7 +674,7 @@ public class BaseController { params.put("searchFoundEndTime", entry.getSearchFoundEndTime()); }else{ // 判断是否是从配置界面过来的日志查询 - if(entry.getCfgId() != null) { + if(StringUtils.isNotBlank(entry.getIsLogTotalSearch())) { // 判断startTime是否有值 if(StringUtils.isNotBlank(Constants.LOG_TIME_START)) { String endTime = Constants.LOG_TIME_END; @@ -687,7 +687,9 @@ public class BaseController { entry.setSearchFoundEndTime(endTime); }else { Calendar startTimeCal = Calendar.getInstance(); - startTimeCal.setTimeInMillis(Long.parseLong(entry.getDate()));// 同步日志总量查询时间 + if(StringUtils.isNotEmpty(entry.getDate())) { + startTimeCal.setTimeInMillis(Long.parseLong(entry.getDate()));// 同步日志总量查询时间 + } // 时间间隔 int interval = Constants.LOG_TIME_RANGE/1000/60; if(interval < 60) { @@ -702,7 +704,7 @@ public class BaseController { } Calendar endTimeCal = Calendar.getInstance(); endTimeCal.setTimeInMillis(startTimeCal.getTimeInMillis()); - endTimeCal.add(Calendar.SECOND, -1); + //endTimeCal.add(Calendar.SECOND, -1); startTimeCal.add(Calendar.MINUTE, -interval); //开始时间减去时间间隔 diff --git a/src/main/java/com/nis/web/controller/configuration/LogSearchController.java b/src/main/java/com/nis/web/controller/configuration/LogSearchController.java index ac9abffc3..4bd69897c 100644 --- a/src/main/java/com/nis/web/controller/configuration/LogSearchController.java +++ b/src/main/java/com/nis/web/controller/configuration/LogSearchController.java @@ -15,8 +15,8 @@ import com.nis.web.controller.BaseController; public class LogSearchController extends BaseController{ @RequestMapping(value = {"list",""}) - public String LogSearch(BaseLogEntity entity, Integer compileId,RedirectAttributes attr, - HttpServletRequest request, HttpServletResponse response) { + public String LogSearch(BaseLogEntity entity, RedirectAttributes attr, HttpServletRequest request, + HttpServletResponse response) { /** * url: logUrl * searchCfgId: compileId @@ -26,10 +26,11 @@ public class LogSearchController extends BaseController{ String logUrl = menuService.getLogUrl(entity.getFunctionId()); Integer serviceId = menuService.getServiceId(entity.getFunctionId(),entity.getAction()); - attr.addAttribute("cfgId", compileId); attr.addAttribute("service", serviceId); + attr.addAttribute("cfgId", entity.getCfgId()); attr.addAttribute("functionId", entity.getFunctionId()); attr.addAttribute("date", entity.getDate()); + attr.addAttribute("isLogTotalSearch", entity.getIsLogTotalSearch()); return "redirect:"+adminPath+logUrl; } } diff --git a/src/main/resources/sql/add_function_service.sql b/src/main/resources/sql/add_function_service.sql index 72912cedd..fd7ba3289 100644 --- a/src/main/resources/sql/add_function_service.sql +++ b/src/main/resources/sql/add_function_service.sql @@ -1,4 +1,9 @@ INSERT INTO function_service_dict (`dict_id`, `function_id`, `protocol_id`, `action`, `action_code`, `service_id`, `service_name`, `service_desc`, `is_valid`, `creator_id`, `create_time`, `editor_id`, `edit_time`, `region_code`) VALUES - (116, 570, 0, 1, 'monit', 520, 'pxy_intercept_monit_keyring', '', 1, null, null, null, null, ''); \ No newline at end of file + (116, 570, 0, 1, 'monit', 520, 'pxy_intercept_monit_keyring', '', 1, null, null, null, null, ''); + +INSERT INTO function_service_dict + (`function_id`, `protocol_id`, `action`, `action_code`, `service_id`, `service_name`, `service_desc`, `is_valid`, `creator_id`, `create_time`, `editor_id`, `edit_time`, `region_code`) +VALUES + ('510', '0', '1', 'monit', '146', 'p2p_monit', NULL, '1', NULL, NULL, NULL, NULL, '1,2,3,4'); diff --git a/src/main/webapp/WEB-INF/views/log/manipulation/dkBehaviorList.jsp b/src/main/webapp/WEB-INF/views/log/manipulation/dkBehaviorList.jsp index c3ba3a9b9..762650012 100644 --- a/src/main/webapp/WEB-INF/views/log/manipulation/dkBehaviorList.jsp +++ b/src/main/webapp/WEB-INF/views/log/manipulation/dkBehaviorList.jsp @@ -52,6 +52,7 @@ $(document).ready(function(){ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/appList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/appList.jsp index 0dd8febbf..cb38756a1 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/appList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/appList.jsp @@ -44,6 +44,7 @@ $(document).ready(function(){ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/bgpList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/bgpList.jsp index c1c223754..20ac0b253 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/bgpList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/bgpList.jsp @@ -42,6 +42,7 @@ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/ddosList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/ddosList.jsp index 41853fa9e..7738232b8 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/ddosList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/ddosList.jsp @@ -44,6 +44,7 @@ $(document).ready(function(){ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/dnsList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/dnsList.jsp index 02fb34466..b5be6fd94 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/dnsList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/dnsList.jsp @@ -42,6 +42,7 @@ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/ftpList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/ftpList.jsp index 070c43d4d..61b1b1a52 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/ftpList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/ftpList.jsp @@ -44,6 +44,7 @@ $(document).ready(function(){ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/httpList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/httpList.jsp index 8d4bd650f..bed5e9dc2 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/httpList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/httpList.jsp @@ -42,6 +42,7 @@ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/ipList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/ipList.jsp index d38f9dccc..6f1160ae6 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/ipList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/ipList.jsp @@ -42,6 +42,7 @@ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/ipsecList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/ipsecList.jsp index 61e7d069d..d9796433b 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/ipsecList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/ipsecList.jsp @@ -43,6 +43,7 @@ $(document).ready(function(){ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/l2tpLogList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/l2tpLogList.jsp index 1f595de06..a9f38e1d9 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/l2tpLogList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/l2tpLogList.jsp @@ -47,6 +47,7 @@ +
diff --git a/src/main/webapp/WEB-INF/views/log/ntc/mailList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/mailList.jsp index 9e7f989ff..67cf91d7c 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/mailList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/mailList.jsp @@ -42,6 +42,7 @@ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/mmAvIpList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/mmAvIpList.jsp index 72c789722..e9cc6f011 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/mmAvIpList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/mmAvIpList.jsp @@ -43,6 +43,7 @@ $(document).ready(function(){ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/mmAvUrlList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/mmAvUrlList.jsp index dbdf2939f..846162e91 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/mmAvUrlList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/mmAvUrlList.jsp @@ -44,6 +44,7 @@ $(document).ready(function(){ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/mmPicIpList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/mmPicIpList.jsp index 0d2be860c..b5115a6f9 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/mmPicIpList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/mmPicIpList.jsp @@ -44,6 +44,7 @@ $(document).ready(function(){ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/mmPicUrlList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/mmPicUrlList.jsp index 2f47305ea..4d95725f7 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/mmPicUrlList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/mmPicUrlList.jsp @@ -44,6 +44,7 @@ $(document).ready(function(){ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/mmPornAudioSampleList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/mmPornAudioSampleList.jsp index e736a3f05..bdaa5e0f6 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/mmPornAudioSampleList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/mmPornAudioSampleList.jsp @@ -44,6 +44,7 @@ $(document).ready(function(){ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/mmPornVideoSampleList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/mmPornVideoSampleList.jsp index b81414bd6..fdcd2814b 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/mmPornVideoSampleList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/mmPornVideoSampleList.jsp @@ -44,6 +44,7 @@ $(document).ready(function(){ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/mmSampleAudioList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/mmSampleAudioList.jsp index b6f4e96f1..0dcaf4ea9 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/mmSampleAudioList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/mmSampleAudioList.jsp @@ -57,6 +57,7 @@ value="${page.pageSize}" /> + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/mmSamplePicList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/mmSamplePicList.jsp index 16200e51c..f61c56fb7 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/mmSamplePicList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/mmSamplePicList.jsp @@ -44,6 +44,7 @@ $(document).ready(function(){ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/mmSampleVideoList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/mmSampleVideoList.jsp index e9c7b4dc9..2ea300c98 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/mmSampleVideoList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/mmSampleVideoList.jsp @@ -44,6 +44,7 @@ $(document).ready(function(){ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/mmSampleVoipList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/mmSampleVoipList.jsp index d6acfe5a1..16d47c2fa 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/mmSampleVoipList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/mmSampleVoipList.jsp @@ -44,6 +44,7 @@ $(document).ready(function(){ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/mmVoipAccountList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/mmVoipAccountList.jsp index d8361913b..20956a85d 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/mmVoipAccountList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/mmVoipAccountList.jsp @@ -44,6 +44,7 @@ $(document).ready(function(){ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/mmVoipIpList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/mmVoipIpList.jsp index c2f0f0a72..38728fe3c 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/mmVoipIpList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/mmVoipIpList.jsp @@ -44,6 +44,7 @@ $(document).ready(function(){ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/openVpnList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/openVpnList.jsp index da502dddd..10b4499d6 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/openVpnList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/openVpnList.jsp @@ -44,6 +44,7 @@ $(document).ready(function(){ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/p2pList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/p2pList.jsp index 51c8fcd56..a8f9ef606 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/p2pList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/p2pList.jsp @@ -43,6 +43,7 @@ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/pptpLogList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/pptpLogList.jsp index 2904fb212..ed58918bb 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/pptpLogList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/pptpLogList.jsp @@ -47,6 +47,7 @@ +
diff --git a/src/main/webapp/WEB-INF/views/log/ntc/sshList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/sshList.jsp index 32760babb..ee598c2fc 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/sshList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/sshList.jsp @@ -44,6 +44,7 @@ $(document).ready(function(){ + diff --git a/src/main/webapp/WEB-INF/views/log/ntc/sslLogList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/sslLogList.jsp index f2fcc3edc..e60d6d98c 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/sslLogList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/sslLogList.jsp @@ -48,6 +48,7 @@ +
diff --git a/src/main/webapp/WEB-INF/views/log/pxy/pxyHttpList.jsp b/src/main/webapp/WEB-INF/views/log/pxy/pxyHttpList.jsp index 1441790e1..19e1f505e 100644 --- a/src/main/webapp/WEB-INF/views/log/pxy/pxyHttpList.jsp +++ b/src/main/webapp/WEB-INF/views/log/pxy/pxyHttpList.jsp @@ -42,6 +42,7 @@ + diff --git a/src/main/webapp/static/global/scripts/common.js b/src/main/webapp/static/global/scripts/common.js index b9952cae3..ab5d6dd31 100644 --- a/src/main/webapp/static/global/scripts/common.js +++ b/src/main/webapp/static/global/scripts/common.js @@ -1390,11 +1390,7 @@ var GetLogTotal=function(_data){ for(var i=0;i"+data[i].sum+""); - }else{ - $(this).html(data[i].sum); - } + $(this).html(""+data[i].sum+""); hasLog=true; } } @@ -1436,7 +1432,8 @@ var toLogSearch = function(index){ var date=$(this).attr("date"); var pathName=window.document.location.pathname.substring(0,window.document.location.pathname.indexOf("/nis")+4); - window.location.href = pathName+"/toLogSearch?action="+action+"&functionId="+functionId+"&compileId="+compileId+"&date="+date; + window.location.href = pathName+"/toLogSearch?action="+action+"&functionId="+functionId+"&cfgId="+compileId+"&date="+date+"&isLogTotalSearch=yes"; + } }); diff --git a/src/main/webapp/static/pages/scripts/pageLogs.js b/src/main/webapp/static/pages/scripts/pageLogs.js index b2c418e8c..954471ae1 100644 --- a/src/main/webapp/static/pages/scripts/pageLogs.js +++ b/src/main/webapp/static/pages/scripts/pageLogs.js @@ -50,8 +50,8 @@ $(document).ready(function() { }); // 添加由配置界面跳转到日志查询界面后的返回按钮 - var cfgId = $("input[name=cfgId]").val(); - if(cfgId != undefined && cfgId != ''){ + var isLogTotalSearch = $("#isLogTotalSearch").val(); + if(isLogTotalSearch != undefined && isLogTotalSearch != ''){ $(".theme-panel").html(""); } }); From 5f657b0db444c3d0d5a3176de24cc0f06052ef13 Mon Sep 17 00:00:00 2001 From: zhanghongqing Date: Thu, 13 Sep 2018 16:48:42 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=9C=BA=E6=99=AF?= =?UTF-8?q?=E5=9C=A8=E6=95=B0=E6=8D=AE=E5=BA=93=E9=A2=84=E7=BD=AE=E4=B8=80?= =?UTF-8?q?=E6=9D=A1compile=E4=B8=BA0=20=E7=9A=84=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/sql/20180913/add_av_sign_sample_cfg.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/main/resources/sql/20180913/add_av_sign_sample_cfg.sql diff --git a/src/main/resources/sql/20180913/add_av_sign_sample_cfg.sql b/src/main/resources/sql/20180913/add_av_sign_sample_cfg.sql new file mode 100644 index 000000000..7679288e3 --- /dev/null +++ b/src/main/resources/sql/20180913/add_av_sign_sample_cfg.sql @@ -0,0 +1,3 @@ + +-- ------视频场在数据库预置一条compileId为0数据------------------- +INSERT INTO `av_sign_sample_cfg` VALUES ('10022', '1', '1', '0', '0', '16', '1', null, '0', '2018-09-06 15:56:53', null, null, '158', '2018-09-13 16:43:54', '266', '0', '0', '0', '0', '0', '0', '0', '33', '0', '0'); From dc71baa9e198bee2845e0ddfb3a58820f03cc752 Mon Sep 17 00:00:00 2001 From: wangxin Date: Thu, 13 Sep 2018 16:56:01 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E7=89=B9=E5=AE=9A=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=9C=A8=E5=AD=97=E5=85=B8=E5=8A=A0=E5=85=A5=E5=BC=80=E5=85=B3?= =?UTF-8?q?IS=5FSHOW=5FBUSINESS=5FTYPE,=E5=85=B6=E5=80=BC=E4=B8=BA1?= =?UTF-8?q?=E6=97=B6app,=E5=9F=BA=E7=A1=80=E5=8D=8F=E8=AE=AE=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E8=8F=9C=E5=8D=95=E5=B1=95=E7=A4=BA=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=EF=BC=8C=E5=85=B6=E4=BB=96=E6=83=85=E5=86=B5?= =?UTF-8?q?=E4=B8=8D=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../specific/SpecificServiceCfgController.java | 14 +++++++++++++- .../20180913/update_dict_IS_SHOW_BUSINESS_TYPE.sql | 6 ++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/sql/20180913/update_dict_IS_SHOW_BUSINESS_TYPE.sql diff --git a/src/main/java/com/nis/web/controller/specific/SpecificServiceCfgController.java b/src/main/java/com/nis/web/controller/specific/SpecificServiceCfgController.java index 2f7c9e44d..c3b52e848 100644 --- a/src/main/java/com/nis/web/controller/specific/SpecificServiceCfgController.java +++ b/src/main/java/com/nis/web/controller/specific/SpecificServiceCfgController.java @@ -214,7 +214,19 @@ public class SpecificServiceCfgController extends BaseController { map2.put("name","root_node"); //map2.put("placeholder","0"); mapList.add(map2); - if(specific==null||!specific) { + List isShowList=DictUtils.getDictList("IS_SHOW_BUSINESS_TYPE"); + boolean isShowBusinessType=false; + if(isShowList!=null&&isShowList.size()>0) { + for(SysDataDictionaryItem item:isShowList) { + if(item.getStatus()==1) {//可用 + if("1".equals(item.getItemCode())) { + isShowBusinessType=true; + break; + } + } + } + } + if((specific==null||!specific)&&isShowBusinessType) { Properties props=this.getMsgProp(); List businessTypeList=Lists.newArrayList(); if(cfgType==1) { diff --git a/src/main/resources/sql/20180913/update_dict_IS_SHOW_BUSINESS_TYPE.sql b/src/main/resources/sql/20180913/update_dict_IS_SHOW_BUSINESS_TYPE.sql new file mode 100644 index 000000000..511013770 --- /dev/null +++ b/src/main/resources/sql/20180913/update_dict_IS_SHOW_BUSINESS_TYPE.sql @@ -0,0 +1,6 @@ +#先插入字典名字 +INSERT INTO sys_data_dictionary_name (module_name,mark,remark,revision,create_time,modify_time,STATUS) VALUES ('app,基础协议是否展示业务类型','IS_SHOW_BUSINESS_TYPE','','',NOW(),NOW(),1); +#再查询字典的id +SELECT * FROM sys_data_dictionary_name WHERE mark='IS_SHOW_BUSINESS_TYPE'; +#添加字典值 +INSERT INTO sys_data_dictionary_item (item_code,item_value,item_desc,item_sort,STATUS,TYPE,dictionary_id) VALUES(1,'yes_no','是否',0,1,1,113) From 693345b201eb1cedbb1d3b63524d347d4bf4c7d4 Mon Sep 17 00:00:00 2001 From: zhangwenqing Date: Thu, 13 Sep 2018 17:28:48 +0800 Subject: [PATCH 4/4] =?UTF-8?q?P2P=E6=97=A5=E5=BF=97=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=AD=97=E6=AE=B5.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/nis/domain/log/NtcP2pLog.java | 17 +++++++++-------- .../resources/messages/message_en.properties | 6 +++++- .../resources/messages/message_zh_CN.properties | 6 +++++- .../webapp/WEB-INF/views/log/ntc/p2pList.jsp | 10 ++++++++++ 4 files changed, 29 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/nis/domain/log/NtcP2pLog.java b/src/main/java/com/nis/domain/log/NtcP2pLog.java index 1529e6009..9da477f46 100644 --- a/src/main/java/com/nis/domain/log/NtcP2pLog.java +++ b/src/main/java/com/nis/domain/log/NtcP2pLog.java @@ -6,20 +6,20 @@ public class NtcP2pLog extends BaseLogEntity{ * */ private static final long serialVersionUID = -826089417186930465L; - private Integer p2pProtoId; - private Integer p2pFileId; + private String p2pProto; + private String p2pFileId; private String p2pKeyword; - public Integer getP2pProtoId() { - return p2pProtoId; + public String getP2pProto() { + return p2pProto; } - public void setP2pProtoId(Integer p2pProtoId) { - this.p2pProtoId = p2pProtoId; + public void setP2pProto(String p2pProto) { + this.p2pProto = p2pProto; } - public Integer getP2pFileId() { + public String getP2pFileId() { return p2pFileId; } - public void setP2pFileId(Integer p2pFileId) { + public void setP2pFileId(String p2pFileId) { this.p2pFileId = p2pFileId; } public String getP2pKeyword() { @@ -28,4 +28,5 @@ public class NtcP2pLog extends BaseLogEntity{ public void setP2pKeyword(String p2pKeyword) { this.p2pKeyword = p2pKeyword; } + } diff --git a/src/main/resources/messages/message_en.properties b/src/main/resources/messages/message_en.properties index de3b7feac..727ac2fc8 100644 --- a/src/main/resources/messages/message_en.properties +++ b/src/main/resources/messages/message_en.properties @@ -1148,4 +1148,8 @@ MM_FACE_RECOGNIZATION=Face Recognization preset=Preset ip_must_select=IP Configuration must select av_voip_account_reject=VoIP Account Control -av_voip_account_monit=VoIP Account Monitoring \ No newline at end of file +av_voip_account_monit=VoIP Account Monitoring + +p2p_proto=P2P Protocol +p2p_file_id=File Marking +p2p_keyword=Emule Search Keyword \ No newline at end of file diff --git a/src/main/resources/messages/message_zh_CN.properties b/src/main/resources/messages/message_zh_CN.properties index 96dfd49df..1cf5a85b9 100644 --- a/src/main/resources/messages/message_zh_CN.properties +++ b/src/main/resources/messages/message_zh_CN.properties @@ -1146,4 +1146,8 @@ MM_FACE_RECOGNIZATION=\u4EBA\u8138\u8BC6\u522B preset=\u9884\u7F6E ip_must_select=IP\u914D\u7F6E\u5FC5\u9009 av_voip_account_reject=VoIP \u8D26\u53F7\u7BA1\u63A7 -av_voip_account_monit=VoIP \u8D26\u53F7\u76D1\u6D4B \ No newline at end of file +av_voip_account_monit=VoIP \u8D26\u53F7\u76D1\u6D4B + +p2p_proto=P2P\u534F\u8BAE +p2p_file_id=\u6587\u4EF6\u6807\u8BC6 +p2p_keyword=Emule\u641C\u7D22\u5173\u952E\u8BCD \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/log/ntc/p2pList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/p2pList.jsp index a8f9ef606..7862f67b8 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/p2pList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/p2pList.jsp @@ -188,6 +188,11 @@ + + + + + @@ -229,6 +234,11 @@ + + ${log.p2pProto} + ${log.p2pFileId} + ${log.p2pKeyword} + ${fns:abbr(log.capIp, 42)} ${log.transProto }