diff --git a/db/init/galaxy_stru_ui_mysql.sql b/db/init/galaxy_stru_ui_mysql.sql index 90c61a8..409505e 100644 --- a/db/init/galaxy_stru_ui_mysql.sql +++ b/db/init/galaxy_stru_ui_mysql.sql @@ -161,8 +161,10 @@ CREATE TABLE `ui_code_protocol_type_dic` ( `id` int(11) NOT NULL AUTO_INCREMENT, `protocol_type` varchar(255) DEFAULT '', `view_code` varchar(255) DEFAULT NULL, + `service_id` int(11) DEFAULT NULL, + `remarks` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@192.168.10.204:3306/gwall/code_protocol_type_dic'; +) ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/code_protocol_type_dic'; CREATE TABLE `ui_code_service_type_dic` ( diff --git a/src/main/java/com/nis/web/dao/dashboard/NtcTotalReportDao.xml b/src/main/java/com/nis/web/dao/dashboard/NtcTotalReportDao.xml index f5fd6fe..1c713b5 100644 --- a/src/main/java/com/nis/web/dao/dashboard/NtcTotalReportDao.xml +++ b/src/main/java/com/nis/web/dao/dashboard/NtcTotalReportDao.xml @@ -32,8 +32,17 @@ - SELECT stat_time statTime FROM traffic_http_statistic order by stat_time desc limit 1 - - - - - - - - - - - - - - - - - + SELECT stat_time statTime FROM traffic_http_statistic order by stat_time + desc limit 1 + + + + + + + + + + + + + + + + + + + + + + + and stat_time > DATE_SUB(#{statTime},INTERVAL 1 hour) + \ No newline at end of file diff --git a/src/main/java/com/nis/web/dao/dashboard/TrafficProtocolStatisticDao.xml b/src/main/java/com/nis/web/dao/dashboard/TrafficProtocolStatisticDao.xml index ed6396d..56d4760 100644 --- a/src/main/java/com/nis/web/dao/dashboard/TrafficProtocolStatisticDao.xml +++ b/src/main/java/com/nis/web/dao/dashboard/TrafficProtocolStatisticDao.xml @@ -17,7 +17,7 @@