From 5564d2c3c7c1473d1747e55aa674c628bcf37a36 Mon Sep 17 00:00:00 2001 From: zhanghongqing Date: Wed, 26 Sep 2018 19:14:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BD=91=E7=AB=99=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1sql=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/nis/web/dao/dashboard/TrafficHttpStatisticDao.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/nis/web/dao/dashboard/TrafficHttpStatisticDao.xml b/src/main/java/com/nis/web/dao/dashboard/TrafficHttpStatisticDao.xml index 2f560bf..1bd6828 100644 --- a/src/main/java/com/nis/web/dao/dashboard/TrafficHttpStatisticDao.xml +++ b/src/main/java/com/nis/web/dao/dashboard/TrafficHttpStatisticDao.xml @@ -19,6 +19,7 @@ SELECT SUM(link_num) count, IFNULL( website_service_id, 268435455 ) websiteServiceId ,(SUM(c2s_pkt_num)+SUM(s2c_pkt_num)) pktNum,(SUM(c2s_byte_len)+SUM(s2c_byte_len)) byteLen FROM galaxy.TRAFFIC_HTTP_STATISTIC t LEFT JOIN galaxy.ui_website_domain_topic u ON t.web_id = u.id + and t.web_id!=0 and t.stat_time >= DATE_SUB((SELECT MAX(stat_time) FROM galaxy.traffic_http_statistic),INTERVAL 5 MINUTE) GROUP BY u.website_service_id ORDER BY count limit 0,10 @@ -26,6 +27,7 @@ SELECT SUM(link_num) count, IFNULL( topic_id, 268435455 ) topicId ,(SUM(c2s_pkt_num)+SUM(s2c_pkt_num)) pktNum,(SUM(c2s_byte_len)+SUM(s2c_byte_len)) byteLen FROM galaxy.TRAFFIC_HTTP_STATISTIC t LEFT JOIN galaxy.ui_website_domain_topic u ON t.web_id = u.id + and t.web_id!=0 and t.stat_time >= DATE_SUB((SELECT MAX(stat_time) FROM galaxy.traffic_http_statistic),INTERVAL 5 MINUTE) GROUP BY u.topic_id ORDER BY count limit 0,10 @@ -68,6 +70,7 @@ SELECT SUM(link_num) count ,(SUM(c2s_pkt_num)+SUM(s2c_pkt_num)) pktNum,(SUM(c2s_byte_len)+SUM(s2c_byte_len)) byteLen FROM galaxy.traffic_http_statistic t LEFT JOIN galaxy.ui_website_domain_topic u ON t.web_id=u.id where u.website_service_id=#{websiteServiceId} + and t.web_id!=0 and t.web_id not in